commit | e1815b3eba5b56be2a210409b5df13d9e32221b6 | [log] [tgz] |
---|---|---|
author | Lianjun Huang <huanglianjun@vivo.com> | Sat Jun 16 22:59:46 2018 +0800 |
committer | Lianjun Huang <huanglianjun@vivo.com> | Sun Jun 17 03:46:56 2018 +0000 |
tree | 3317de1d771337f157a5d46823f33aae0722f769 | |
parent | a4230beab30af49966a3d56a53143e1fd0e58a98 [diff] |
ANDROID: sdcardfs: fix potential crash when reserved_mb is not zero sdcardfs_mkdir() calls check_min_free_space(). When reserved_mb is not zero, a negative dentry will be passed to ext4_statfs() at last and ext4_statfs() will crash. The parent dentry is positive. So we use the parent dentry to check free space. Change-Id: I80ab9623fe59ba911f4cc9f0e029a1c6f7ee421b Signed-off-by: Lianjun Huang <huanglianjun@vivo.com>