ksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 2 May 2023 23:38:33 +0000 (08:38 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 4 May 2023 04:03:01 +0000 (23:03 -0500)
commit3ac00a2ab69b34189942afa9e862d5170cdcb018
tree6518967ea73fdaf2bf8fecd279fc5975f48a72d4
parent6d7cb549c2ca20e1f07593f15e936fd54b763028
ksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()

If share is , share->path is NULL and it cause NULL pointer
dereference issue.

Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-20479
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c