Commit 88da638
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>1 parent f98cef4 commit 88da638
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5124 | 5124 | | |
5125 | 5125 | | |
5126 | 5126 | | |
5127 | | - | |
| 5127 | + | |
| 5128 | + | |
5128 | 5129 | | |
| 5130 | + | |
5129 | 5131 | | |
5130 | 5132 | | |
5131 | 5133 | | |
| |||
0 commit comments