commit | b8fc94cdb144467d88f35344076fd3621af93a17 | [log] [tgz] |
---|---|---|
author | Namjae Jeon <namjae.jeon@samsung.com> | Wed Jul 07 14:56:44 2021 +0900 |
committer | Namjae Jeon <namjae.jeon@samsung.com> | Thu Jul 08 15:46:11 2021 +0900 |
tree | 994f7c8dbb41f9605040c74e6d81620fa6cb57c5 | |
parent | 6cfbcf2f40e371ce36c030addc539597d058b3a9 [diff] |
ksmbd: fix read on the uninitialized send_ctx If st->status is not SMB_DIRECT_CS_CONNECTED, It will jump done label and accessing the uninitialized send_ctxi by smb_direct_flush_send_list will cause kernel oops. This patch just return -ENOTCONN to avoid it. Reported-by: Coverity Scan <scan-admin@coverity.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>