diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-05-14 04:02:27 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-05-27 04:27:46 +0300 |
commit | df14afeed2e6c1bbadef7d2f9c46887bbd6d8d94 (patch) | |
tree | 497780355af0efa37554a3ef6e89399d4c508884 /fs/pnode.c | |
parent | 48b47f0caaa8a9f05ed803cb4f335fa3a7bfc622 (diff) | |
download | linux-df14afeed2e6c1bbadef7d2f9c46887bbd6d8d94.tar.xz |
ksmbd: fix uninitialized pointer read in smb2_create_link()
There is a case that file_present is true and path is uninitialized.
This patch change file_present is set to false by default and set to
true when patch is initialized.
Fixes: 74d7970febf7 ("ksmbd: fix racy issue from using ->d_parent and ->d_name")
Reported-by: Coverity Scan <scan-admin@coverity.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/pnode.c')
0 files changed, 0 insertions, 0 deletions