summaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-10-31 23:00:24 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-10-31 23:00:24 -0400
commitdcb9917ba041866686fe152850364826c4622a36 (patch)
tree7eb167f08423e52e796e7ba25fba8509d732600b /fs/ext4/xattr.c
parent2746f7a17062d3526116f7ae7f91d88b19c2464e (diff)
downloadop-kernel-dev-dcb9917ba041866686fe152850364826c4622a36.zip
op-kernel-dev-dcb9917ba041866686fe152850364826c4622a36.tar.gz
ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea()
Reported-by: Dave Jones <davej@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/ext4/xattr.c')
-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 03e9beb..1423c48 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;
OpenPOWER on IntegriCloud