提交 98e99e5a 编写于 作者: W Wolfgang Denk

Merge branch 'master' of git://git.denx.de/u-boot-ubi

* 'master' of git://git.denx.de/u-boot-ubi:
  ubifs: Fix bad free() sequence in ubifs_finddir()
......@@ -360,6 +360,8 @@ out:
return err;
}
if (file->private_data)
kfree(file->private_data);
if (file)
free(file);
if (dentry)
......@@ -367,10 +369,6 @@ out:
if (dir)
free(dir);
if (file->private_data)
kfree(file->private_data);
file->private_data = NULL;
file->f_pos = 2;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册