OSDN Git Service

fs/ntfs3: Unlock on error in attr_insert_range()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Jun 2022 13:10:56 +0000 (16:10 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 5 Jul 2022 13:07:53 +0000 (16:07 +0300)
commit4838ec0d80b110a5f30c7e3169dc5021efd203d4
tree372ec5158e414933accc73204f8337058d3643b7
parente66af07ca2b57e01dbf6001ae565ab40037b2df3
fs/ntfs3: Unlock on error in attr_insert_range()

This error path needs to call up_write(&ni->file.run_lock) and do some
other clean up before returning.

Fixes: aa30eccb24e5 ("fs/ntfs3: Fallocate (FALLOC_FL_INSERT_RANGE) implementation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/attrib.c