Commit 67e2113d authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Ben Hutchings

ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea()

commit dcb9917b upstream.
Reported-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 75b23979
......@@ -1271,6 +1271,7 @@ int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize,
new_extra_isize = s_min_extra_isize;
kfree(is); is = NULL;
kfree(bs); bs = NULL;
brelse(bh);
goto retry;
}
error = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment