Skip to content
Commit 69c14d29 authored by Hyunchul Lee's avatar Hyunchul Lee Committed by Greg Kroah-Hartman
Browse files

ksmbd: fix outstanding credits related bugs

commit 376b9133 upstream.

outstanding credits must be initialized to 0,
because it means the sum of credits consumed by
in-flight requests.
And outstanding credits must be compared with
total credits in smb2_validate_credit_charge(),
because total credits are the sum of credits
granted by ksmbd.

This patch fix the following error,
while frametest with Windows clients:

Limits exceeding the maximum allowable outstanding requests,
given : 128, pending : 8065

Fixes: b589f5db

 ("ksmbd: limits exceeding the maximum allowable outstanding requests")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHyunchul Lee <hyc.lee@gmail.com>
Reported-by: default avatarYufan Chen <wiz.chen@gmail.com>
Tested-by: default avatarYufan Chen <wiz.chen@gmail.com>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cae2978d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment