summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-10-31 23:00:24 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-04 10:56:24 -0800
commitef0d74867fc7e440b0e945e7fe47a862dbc9c9ef (patch)
tree37fd13d9b6f1aae67d67cb6803d1b811f541c806 /fs/ext4
parent17dd1396ef45390758e18d19f06b1e1408af9c03 (diff)
downloadlinux-3.10-ef0d74867fc7e440b0e945e7fe47a862dbc9c9ef.tar.gz
linux-3.10-ef0d74867fc7e440b0e945e7fe47a862dbc9c9ef.tar.bz2
linux-3.10-ef0d74867fc7e440b0e945e7fe47a862dbc9c9ef.zip
ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea()
commit dcb9917ba041866686fe152850364826c4622a36 upstream. Reported-by: Dave Jones <davej@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/xattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 03e9bebba19..1423c4816a4 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -1352,6 +1352,7 @@ retry:
new_extra_isize = s_min_extra_isize;
kfree(is); is = NULL;
kfree(bs); bs = NULL;
+ brelse(bh);
goto retry;
}
error = -1;