diff options
author | Joseph Qi <joseph.qi@linux.alibaba.com> | 2020-11-03 10:29:02 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-11-06 22:52:36 -0500 |
commit | 7067b2619017d51e71686ca9756b454de0e5826a (patch) | |
tree | ba8c392b3aa53be864c35aa9934699aafe6e0b44 /fs/ext4/fast_commit.h | |
parent | e121bd48b9eb8e3b9104d3d5d08fdf88e9ca0f97 (diff) | |
download | linux-7067b2619017d51e71686ca9756b454de0e5826a.tar.gz linux-7067b2619017d51e71686ca9756b454de0e5826a.tar.bz2 linux-7067b2619017d51e71686ca9756b454de0e5826a.zip |
ext4: unlock xattr_sem properly in ext4_inline_data_truncate()
It takes xattr_sem to check inline data again but without unlock it
in case not have. So unlock it before return.
Fixes: aef1c8513c1f ("ext4: let ext4_truncate handle inline data correctly")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/1604370542-124630-1-git-send-email-joseph.qi@linux.alibaba.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ext4/fast_commit.h')
0 files changed, 0 insertions, 0 deletions