提交 dcb9917b 编写于 作者: T Theodore Ts'o

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

Reported-by: NDave Jones <davej@redhat.com>
Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
上级 2746f7a1
...@@ -1352,6 +1352,7 @@ int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize, ...@@ -1352,6 +1352,7 @@ int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize,
new_extra_isize = s_min_extra_isize; new_extra_isize = s_min_extra_isize;
kfree(is); is = NULL; kfree(is); is = NULL;
kfree(bs); bs = NULL; kfree(bs); bs = NULL;
brelse(bh);
goto retry; goto retry;
} }
error = -1; error = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册