aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2021-07-07 14:56:44 +0900
committerNamjae Jeon <[email protected]>2021-07-08 15:46:11 +0900
commitb8fc94cdb144467d88f35344076fd3621af93a17 (patch)
tree994f7c8dbb41f9605040c74e6d81620fa6cb57c5 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parent6cfbcf2f40e371ce36c030addc539597d058b3a9 (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 <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions