[PATCH 3.5 09/90] ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea()
Luis Henriques
luis.henriques at canonical.com
Thu Dec 5 17:34:51 UTC 2013
3.5.7.27 -stable review patch. If anyone has any objections, please let me know.
------------------
From: Theodore Ts'o <tytso at mit.edu>
commit dcb9917ba041866686fe152850364826c4622a36 upstream.
Reported-by: Dave Jones <davej at redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso at mit.edu>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
fs/ext4/xattr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index e979d5d..2f7cf35 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -1330,6 +1330,7 @@ retry:
new_extra_isize = s_min_extra_isize;
kfree(is); is = NULL;
kfree(bs); bs = NULL;
+ brelse(bh);
goto retry;
}
error = -1;
--
1.8.3.2
More information about the kernel-team
mailing list