summaryrefslogtreecommitdiff
path: root/include/linux/zstd_errors.h
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-12-24 14:20:16 +0000
committerSteve French <stfrench@microsoft.com>2025-12-29 17:39:57 -0600
commit0c56693b06a68476ba113db6347e7897475f9e4c (patch)
tree11b17c89a65b135eeb95cee843af0b7e1973c67c /include/linux/zstd_errors.h
parentf8f9c1f4d0c7a64600e2ca312dec824a0bc2f1da (diff)
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 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions