mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
fs/ntfs3: One more reason to mark inode bad
[ Upstream commit a0dde5d7a58b6bf9184ef3d8c6e62275c3645584 ] In addition to returning an error, mark the node as bad. Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0173999123
commit
41e46e5950
@@ -1601,8 +1601,10 @@ int ni_delete_all(struct ntfs_inode *ni)
|
|||||||
asize = le32_to_cpu(attr->size);
|
asize = le32_to_cpu(attr->size);
|
||||||
roff = le16_to_cpu(attr->nres.run_off);
|
roff = le16_to_cpu(attr->nres.run_off);
|
||||||
|
|
||||||
if (roff > asize)
|
if (roff > asize) {
|
||||||
|
_ntfs_bad_inode(&ni->vfs_inode);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
/* run==1 means unpack and deallocate. */
|
/* run==1 means unpack and deallocate. */
|
||||||
run_unpack_ex(RUN_DEALLOCATE, sbi, ni->mi.rno, svcn, evcn, svcn,
|
run_unpack_ex(RUN_DEALLOCATE, sbi, ni->mi.rno, svcn, evcn, svcn,
|
||||||
|
|||||||
Reference in New Issue
Block a user