Commit 70ca35b4 authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman
Browse files

ext4: fix buffer leak in ext4_xattr_get_block() on error path

commit ecaaf408 upstream.

Fixes: dec214d0

 ("ext4: xattr inode deduplication")
Signed-off-by: default avatarVasily Averin <>
Signed-off-by: default avatarTheodore Ts'o <>
Cc: # 4.13
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 181224f9
......@@ -2281,8 +2281,10 @@ static struct buffer_head *ext4_xattr_get_block(struct inode *inode)
if (!bh)
return ERR_PTR(-EIO);
error = ext4_xattr_check_block(inode, bh);
if (error)
if (error) {
return ERR_PTR(error);
return bh;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment