]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: Fix possible deadlock
authorEthan Tidmore <ethantidmore06@gmail.com>
Thu, 26 Feb 2026 16:09:06 +0000 (10:09 -0600)
committerNamjae Jeon <linkinjeon@kernel.org>
Fri, 27 Feb 2026 09:43:43 +0000 (18:43 +0900)
commitac9ccb6e75c5af84095bece1019f22cb45ab43e5
treeae9251b50115f5ae0a5a9e38f74ee677db5c6d9b
parent1c85157ea88e87644e171c7ae3e1877f43b4b345
ntfs: Fix possible deadlock

In the error path for ntfs_attr_map_whole_runlist() the lock is not
released.

Add release for lock.

Detected by Smatch:
fs/ntfs/attrib.c:5197 ntfs_non_resident_attr_collapse_range() warn:
inconsistent returns '&ni->runlist.lock'.

Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/attrib.c