summaryrefslogtreecommitdiff
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:50:30 -0800
commitdc51161bf8064f63470ee718843a1b4fd75d0bb5 (patch)
tree88eab7fa3ac735920f240efa5abe78a03d026c42
parent1eb9c3425abb5a187ef7b52206eb395aa896151e (diff)
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>
-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 b1aa7fd4701d..01f2cf3409fb 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -1270,6 +1270,7 @@ retry:
new_extra_isize = s_min_extra_isize;
kfree(is); is = NULL;
kfree(bs); bs = NULL;
+ brelse(bh);
goto retry;
}
error = -1;