Steve French e80ddeb2f7 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>
2020-06-04 01:13:41 -05:00
..
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2020-06-01 00:10:18 -05:00
2019-09-24 23:31:32 -05:00
2019-01-24 09:37:33 -06:00