]> git.itanic.dy.fi Git - linux-stable/commit
cifs: set correct max-buffer-size for smb2_ioctl_init()
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 8 Jan 2020 03:08:07 +0000 (13:08 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2020 09:32:56 +0000 (09:32 +0000)
commit19fe70654458345693696ef1cd3313d1d171ac24
tree74cfc9c0c563664e7c2faefcee025dced6781ebe
parent566881308109de128d5bd88431e295e6142e6324
cifs: set correct max-buffer-size for smb2_ioctl_init()

commit 731b82bb1750a906c1e7f070aedf5505995ebea7 upstream.

Fix two places where we need to adjust down the max response size for
ioctl when it is used together with compounding.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2ops.c