commit | 49ca11d5806a5104ee30a465d848e551feec8a28 | [log] [tgz] |
---|---|---|
author | Lianjun Huang <huanglianjun@vivo.com> | Sat Jun 16 22:59:46 2018 +0800 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sat Aug 04 10:48:40 2018 +0200 |
tree | 3bd17c5526927125113463ba2d174c893351b117 | |
parent | ee93c70bce381ac5558fb60fab132319fb795a5b [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> Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>