mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
ksmdb: use cmd helper variable in smb2_get_ksmbd_tcon()
[ Upstream commit 341b16014b ]
Use cmd helper variable in smb2_get_ksmbd_tcon().
Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Steve French <smfrench@gmail.com>
Cc: Hyunchul Lee <hyc.lee@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5fed9cbbaf
commit
a33bb607a1
@@ -95,11 +95,12 @@ struct channel *lookup_chann_list(struct ksmbd_session *sess, struct ksmbd_conn
|
||||
int smb2_get_ksmbd_tcon(struct ksmbd_work *work)
|
||||
{
|
||||
struct smb2_hdr *req_hdr = work->request_buf;
|
||||
unsigned int cmd = le16_to_cpu(req_hdr->Command);
|
||||
int tree_id;
|
||||
|
||||
if (work->conn->ops->get_cmd_val(work) == SMB2_TREE_CONNECT_HE ||
|
||||
work->conn->ops->get_cmd_val(work) == SMB2_CANCEL_HE ||
|
||||
work->conn->ops->get_cmd_val(work) == SMB2_LOGOFF_HE) {
|
||||
if (cmd == SMB2_TREE_CONNECT_HE ||
|
||||
cmd == SMB2_CANCEL_HE ||
|
||||
cmd == SMB2_LOGOFF_HE) {
|
||||
ksmbd_debug(SMB, "skip to check tree connect request\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user