Skip to content

Commit

Permalink
ksmbd: add missing calling smb2_set_err_rsp() on error
Browse files Browse the repository at this point in the history
[ Upstream commit 0e2378eaa2b3a663726cf740d4aaa8a801e2cb31 ]

If some error happen on smb2_sess_setup(), Need to call
smb2_set_err_rsp() to set error response.
This patch add missing calling smb2_set_err_rsp() on error.

Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
namjaejeon authored and gregkh committed Dec 23, 2023
1 parent bd554ed commit 6997fa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ksmbd/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,7 @@ int smb2_sess_setup(struct ksmbd_work *work)
ksmbd_conn_set_need_negotiate(conn);
}
}
smb2_set_err_rsp(work);
} else {
unsigned int iov_len;

Expand Down

0 comments on commit 6997fa6

Please sign in to comment.