Commit df14afe
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: 74d7970 ("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>1 parent 48b47f0 commit df14afe
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5506 | 5506 | | |
5507 | 5507 | | |
5508 | 5508 | | |
5509 | | - | |
| 5509 | + | |
5510 | 5510 | | |
5511 | 5511 | | |
5512 | 5512 | | |
| |||
5539 | 5539 | | |
5540 | 5540 | | |
5541 | 5541 | | |
5542 | | - | |
5543 | | - | |
| 5542 | + | |
| 5543 | + | |
5544 | 5544 | | |
5545 | 5545 | | |
5546 | 5546 | | |
| |||
0 commit comments