]> git.hungrycats.org Git - linux/commitdiff
ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea()
authorTheodore Ts'o <tytso@mit.edu>
Fri, 1 Nov 2013 03:00:24 +0000 (23:00 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 3 Jan 2014 04:33:16 +0000 (04:33 +0000)
commit dcb9917ba041866686fe152850364826c4622a36 upstream.

Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ext4/xattr.c

index b4e9f3fcc3fdb374f05020b80db8f0e8c6dd3574..05617bda34494f89865cbd511e1fb29046c3f06c 100644 (file)
@@ -1271,6 +1271,7 @@ retry:
                                        new_extra_isize = s_min_extra_isize;
                                        kfree(is); is = NULL;
                                        kfree(bs); bs = NULL;
+                                       brelse(bh);
                                        goto retry;
                                }
                                error = -1;