]> Git Repo - linux.git/commitdiff
ksmbd: add missing calling smb2_set_err_rsp() on error
authorNamjae Jeon <[email protected]>
Tue, 29 Aug 2023 10:37:40 +0000 (19:37 +0900)
committerSteve French <[email protected]>
Tue, 29 Aug 2023 17:30:20 +0000 (12:30 -0500)
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]>
fs/smb/server/smb2pdu.c

index d12d995f52d7eda2300b064f1ce7fb200bbd1ba9..3dbde9fb775f9084cbdc97a85e2428e4b804189c 100644 (file)
@@ -1904,6 +1904,7 @@ out_err:
                                ksmbd_conn_set_need_negotiate(conn);
                        }
                }
+               smb2_set_err_rsp(work);
        } else {
                unsigned int iov_len;
 
This page took 0.075268 seconds and 4 git commands to generate.