summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLianjun Huang <huanglianjun@vivo.com>2018-06-16 22:59:46 +0800
committerDaniel Rosenberg <drosen@google.com>2018-06-18 15:08:48 -0700
commit226f96b03dc2a21f3dd430317e629b47048cdad5 (patch)
treeef07f11af4e5441c46dda1c91f2b2fea3e7994e2 /include
parent07c01385fb82b6c7e83c76ec63c4f43b784e6548 (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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions