update add-blkdiscard-ioctl patch
[ext4-patch-queue.git] / avoid-bh-leak-in-retry-path-of-ext4_expand_extra_isize_ea
blob866dd698d73af4f1a37b6bad52a54c237e44d238
1 ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea()
3 Reported-by: Dave Jones <davej@redhat.com>
4 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
5 Cc: stable@vger.kernel.org
6 ---
7  fs/ext4/xattr.c | 1 +
8  1 file changed, 1 insertion(+)
10 diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
11 index 03e9beb..1423c48 100644
12 --- a/fs/ext4/xattr.c
13 +++ b/fs/ext4/xattr.c
14 @@ -1352,6 +1352,7 @@ retry:
15                                         new_extra_isize = s_min_extra_isize;
16                                         kfree(is); is = NULL;
17                                         kfree(bs); bs = NULL;
18 +                                       brelse(bh);
19                                         goto retry;
20                                 }
21                                 error = -1;