summaryrefslogtreecommitdiff
path: root/scripts/basic/Makefile
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-12-24 17:20:16 +0300
committerSteve French <stfrench@microsoft.com>2025-12-30 02:39:57 +0300
commit0c56693b06a68476ba113db6347e7897475f9e4c (patch)
tree11b17c89a65b135eeb95cee843af0b7e1973c67c /scripts/basic/Makefile
parentf8f9c1f4d0c7a64600e2ca312dec824a0bc2f1da (diff)
downloadlinux-0c56693b06a68476ba113db6347e7897475f9e4c.tar.xz
ksmbd: Fix memory leak in get_file_all_info()
In get_file_all_info(), if vfs_getattr() fails, the function returns immediately without freeing the allocated filename, leading to a memory leak. Fix this by freeing the filename before returning in this error case. Fixes: 5614c8c487f6a ("ksmbd: replace generic_fillattr with vfs_getattr") Signed-off-by: Zilin Guan <zilin@seu.edu.cn> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/basic/Makefile')
0 files changed, 0 insertions, 0 deletions