]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: fix error handling in ntfs_write_iomap_end_resident()
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 27 Apr 2026 13:58:52 +0000 (22:58 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 27 Apr 2026 13:58:52 +0000 (22:58 +0900)
commit785bc568161d96fdbd4326294d427a48e66fe60f
tree3e6067c1643e2112967a44bea518ca5618d0c1fc
parentcad7c6f0a5147680dd2081256cf8da54fb445d94
ntfs: fix error handling in ntfs_write_iomap_end_resident()

When ntfs_attr_get_search_ctx() fails and returns NULL, the function
returned early without calling put_page(ipage).
Fix this by jumping to err_out label on error. The err_out path now
properly releases the page and the mutex, with a NULL check for
the search context.

Reported-by: DaeMyung Kang <charsyam@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/iomap.c