]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: set NegotiateContextCount once instead of every inc
authorDavid Disseldorp <ddiss@suse.de>
Mon, 18 Dec 2023 15:33:43 +0000 (00:33 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:55 +0000 (10:41 +0100)
commit2ca23947df8964603885d7fc3e6d90b0aa62fc60
treeae3345ec8202040656024312e08cfefbc9b0aa1f
parent39f5b4b313b445c980a2a295bed28228c29228ed
ksmbd: set NegotiateContextCount once instead of every inc

[ Upstream commit 34e8ccf9ce24b6b2e275bbe35cd392e18fbbd369 ]

There are no early returns, so marshalling the incremented
NegotiateContextCount with every context is unnecessary.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/smb2pdu.c