ksmbd: set STATUS_INVALID_PARAMETER error status if credit charge is invalid
authorNamjae Jeon <namjae.jeon@samsung.com>
Fri, 16 Jul 2021 05:52:46 +0000 (14:52 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 19 Jul 2021 07:20:02 +0000 (16:20 +0900)
commit67307023d02b1339e0b930b742fe5a9cd81284ca
treefb0b12318a75701e4a167075920004bfa5496364
parent58090b175271870842d823622013d4499f462a10
ksmbd: set STATUS_INVALID_PARAMETER error status if credit charge is invalid

MS-SMB2 specification describe :
 If the calculated credit number is greater than the CreditCharge,
 the server MUST fail the request with the error code
 STATUS_INVALID_PARAMETER.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/server.c
fs/ksmbd/smb2misc.c