]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: fix incorrect number of credits when ioctl MaxOutputResponse > 64K
authorSteve French <stfrench@microsoft.com>
Wed, 3 Jun 2020 06:33:58 +0000 (01:33 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 4 Jun 2020 06:13:41 +0000 (01:13 -0500)
commitc48479b30c8201dfe99cdd5f87c8d39818c77461
treeb8cc79c32b991e33a3bf7ba1ba8c56518aee1f8f
parent939a0c028b6a9a7cfa7a1d74fce6df5fc3f54de5
smb3: fix incorrect number of credits when ioctl MaxOutputResponse > 64K

We were not checking to see if ioctl requests asked for more than
64K (ie when CIFSMaxBufSize was > 64K) so when setting larger
CIFSMaxBufSize then ioctls would fail with invalid parameter errors.
When requests ask for more than 64K in MaxOutputResponse then we
need to ask for more than 1 credit.

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/smb2pdu.c