summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorDaeMyung Kang <charsyam@gmail.com>2026-04-26 07:02:32 +0300
committerNamjae Jeon <linkinjeon@kernel.org>2026-04-27 16:29:08 +0300
commit2dd8c1662e38f7bb68a102f1acad9b518c09aeab (patch)
treebe7df25448f9f86ac44417e003f6d002d864d3f5 /scripts/basic
parentb5198fcdc195fa531adff7bbfbe40dd27c8d0e89 (diff)
downloadlinux-2dd8c1662e38f7bb68a102f1acad9b518c09aeab.tar.xz
ntfs: fix WSL symlink target leak on reparse failure
ntfs_reparse_set_wsl_symlink() converts the symlink target into an allocated NLS string and transfers ownership to ni->target only after ntfs_set_ntfs_reparse_data() succeeds. If setting the reparse data fails, the converted target is left unreferenced and leaks. Free the converted target on the reparse update failure path. Use kfree() for the other local failure path as well, matching the ntfs_ucstonls() allocation contract. Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations") Signed-off-by: DaeMyung Kang <charsyam@gmail.com> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions