diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-10-26 12:43:00 -0700 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-27 18:20:30 +0900 |
| commit | 5210eadc44ccdd9632b1ee66205742610a486989 (patch) | |
| tree | 8159dd63bb5ca21d71620c8b5c744f1cc89093c1 /scripts/Makefile.thinlto | |
| parent | 6b4b543fa18757297ac756a6fe6e64f506b7844a (diff) | |
| download | linux-next-5210eadc44ccdd9632b1ee66205742610a486989.tar.gz linux-next-5210eadc44ccdd9632b1ee66205742610a486989.zip | |
ntfs: Fix error handling in __ntfs_create()
In __ntfs_create(), if ntfs_init_acl() fails before
ntfs_mft_record_alloc() is called, jumping to err_out frees MFT record
0 ($MFT), unmaps an unmapped record and unlocks the unheld
&dir_ni->mrec_lock and &ni->mrec_lock mutexes. Call iput(vi) and
return ERR_PTR(err) directly instead, matching the
ntfs_mft_record_alloc() failure path right below it.
Fixes: af0db57d4293 ("ntfs: update inode operations")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
