diff options
| author | 2026-09-07 11:00:43 +0800 | |
|---|---|---|
| committer | 2026-10-20 18:41:42 +0900 | |
| commit | 67f27176e2ca8161f212b72ec48d8c8d6e7f5e7e (patch) | |
| tree | f52507b724ad432273a7e2b6c5bf075e2cc6d906 /scripts/Makefile.thinlto | |
| parent | ntfs: propagate the ntfs_attr_iget() error in update_reparse_data() (diff) | |
ntfs: fix error handling in ntfs_extent_inode_open and propagate errors
ntfs_extent_inode_open() has two issues:
1. When map_mft_record() fails or a stale extent reference is found,
it returns the non-NULL 'ni' pointer instead of an error, causing
the caller to treat the failure as success.
2. For allocation failures, it returns NULL, losing information about
what actually went wrong (-ENOMEM).
Fix both by converting the function to return ERR_PTR() on error, and
update the single caller (ntfs_inode_attach_all_extents) to check with
IS_ERR() and propagate the actual error code with PTR_ERR().
Fixes: af0db57d4293 ("ntfs: update inode operations")
Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
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
