From: Theodore Ts'o Date: Fri, 1 Nov 2013 03:00:24 +0000 (-0400) Subject: ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea() X-Git-Tag: firefly_0821_release~176^2~4973^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dcb9917ba041866686fe152850364826c4622a36;p=firefly-linux-kernel-4.4.55.git ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea() Reported-by: Dave Jones Signed-off-by: "Theodore Ts'o" Cc: stable@vger.kernel.org --- diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 03e9bebba198..1423c4816a47 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;