mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
ksmbd: unset conn->binding on failed binding request
When a multichannel SMB2_SESSION_SETUP request with SMB2_SESSION_REQ_FLAG_BINDING fails ksmbd sets conn->binding = true but never clears it on the error path. This leaves the connection in a binding state where all subsequent ksmbd_session_lookup_all() calls fall back to the global sessions table. This fix it by clearing conn->binding = false in the error path. Cc: stable@vger.kernel.org Reported-by: Hyunwoo Kim <imv4bel@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
5258572aa5
commit
282343cf8a
|
|
@ -1948,6 +1948,7 @@ int smb2_sess_setup(struct ksmbd_work *work)
|
|||
}
|
||||
}
|
||||
smb2_set_err_rsp(work);
|
||||
conn->binding = false;
|
||||
} else {
|
||||
unsigned int iov_len;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user