1 ext4: fix buffer leak in ext4_xattr_get_block() on error path
3 From: Vasily Averin <vvs@virtuozzo.com>
5 Fixes: dec214d00e0d ("ext4: xattr inode deduplication")
6 Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
7 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 Cc: stable@kernel.org # 4.13
10 fs/ext4/xattr.c | 4 +++-
11 1 file changed, 3 insertions(+), 1 deletion(-)
13 diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
14 index dc1aeab06dba..07c3a115f7ae 100644
17 @@ -2272,8 +2272,10 @@ static struct buffer_head *ext4_xattr_get_block(struct inode *inode)
20 error = ext4_xattr_check_block(inode, bh);
24 return ERR_PTR(error);