diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-05-14 10:02:27 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-28 11:14:24 +0200 |
commit | bf8355e3d347db88b78fb443f9284df369a4d905 (patch) | |
tree | 5eaef10656055f120d8e53e06a3228a74f6140a0 /fs/xfs/xfs_dir2_sf.c | |
parent | c526418bc005193fd96d94fba12b0f892f0318f3 (diff) | |
download | linux-stable-bf8355e3d347db88b78fb443f9284df369a4d905.tar.gz linux-stable-bf8355e3d347db88b78fb443f9284df369a4d905.tar.bz2 linux-stable-bf8355e3d347db88b78fb443f9284df369a4d905.zip |
ksmbd: fix uninitialized pointer read in smb2_create_link()
commit df14afeed2e6c1bbadef7d2f9c46887bbd6d8d94 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_dir2_sf.c')
0 files changed, 0 insertions, 0 deletions