projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
707d1a2
)
ext4: unlock on error in ext4_expand_extra_isize()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 13 Dec 2019 18:50:11 +0000
(21:50 +0300)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 14 Dec 2019 22:31:23 +0000
(17:31 -0500)
We need to unlock the xattr before returning on this error path.
Cc: stable@kernel.org # 4.13
Fixes: c03b45b853f5 ("ext4, project: expand inode extra size if possible")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link:
https://lore.kernel.org/r/20191213185010.6k7yl2tck3wlsdkt@kili.mountain
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c
patch
|
blob
|
history
diff --git
a/fs/ext4/inode.c
b/fs/ext4/inode.c
index 310e4abd9acae569e635b26d3a19b7870dcc2fb7..16e72621e9952fc502d469f0a6cb2a4bc40ae4f7 100644
(file)
--- a/
fs/ext4/inode.c
+++ b/
fs/ext4/inode.c
@@
-5689,7
+5689,7
@@
int ext4_expand_extra_isize(struct inode *inode,
error = ext4_journal_get_write_access(handle, iloc->bh);
if (error) {
brelse(iloc->bh);
- goto out_
stop
;
+ goto out_
unlock
;
}
error = __ext4_expand_extra_isize(inode, new_extra_isize, iloc,
@@
-5699,8
+5699,8
@@
int ext4_expand_extra_isize(struct inode *inode,
if (!error)
error = rc;
+out_unlock:
ext4_write_unlock_xattr(inode, &no_expand);
-out_stop:
ext4_journal_stop(handle);
return error;
}