提交 9aaab058 编写于 作者: R Roel Kluin 提交者: Theodore Ts'o

ext4: add missing error checking to ext4_expand_extra_isize_ea()

Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
上级 12062ddd
......@@ -1300,6 +1300,8 @@ int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize,
/* Remove the chosen entry from the inode */
error = ext4_xattr_ibody_set(handle, inode, &i, is);
if (error)
goto cleanup;
entry = IFIRST(header);
if (entry_size + EXT4_XATTR_SIZE(size) >= new_extra_isize)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册