ext4: unlock on error in ext4_expand_extra_isize()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Dec 2019 18:50:11 +0000 (21:50 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:36:28 +0000 (16:36 +0100)
commit307afc5d3f03efd7e284b85d3432e21b79384fc9
treeaecbd7b3d9944a2272281c2ddd3df2afb65868dc
parent14ccb2b84f5bfe3a9dad63e911bd9d3ab78fe26f
ext4: unlock on error in ext4_expand_extra_isize()

commit 7f420d64a08c1dcd65b27be82a27cf2bdb2e7847 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inode.c