diff options
| author | Peiyang He <peiyang_he@smail.nju.edu.cn> | 2026-07-05 19:14:09 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-07-06 20:27:15 +0900 |
| commit | 06769b8f23b4b645b270c438649fff79768fb6fe (patch) | |
| tree | b1a495e63ad14c8f27d5e42491d91cbb7bb46cad /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | 5b6eedd7cc2936f9238e852b553a1b326105bde8 (diff) | |
ntfs: fix hole runlist memory leak in insert range error path
ntfs_non_resident_attr_insert_range() allocates hole_rl before mapping the
whole runlist. If ntfs_attr_map_whole_runlist() fails, the error path drops
ni->runlist.lock and returns without freeing hole_rl. This leaks memory
of sizeof(*hole_rl) * 2 bytes.
Fix this memory leak by freeing hole_rl before returning from
that error path, matching the later error paths in the same function.
Fixes: 495e90fa3348 ("ntfs: update attrib operations")
Cc: stable@vger.kernel.org
Signed-off-by: Peiyang He <peiyang_he@smail.nju.edu.cn>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
