diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2014-02-14 09:31:02 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-05 16:13:41 (GMT) |
commit | 18cb7c14a0a8ba6d07c18b24e4434dc31949d5f1 (patch) | |
tree | c3440a920fdd6c1996f79fc74e4661e978a20a01 /drivers/tty/tty_port.c | |
parent | 90d369693d48ec7ffa4ca039e6fd14e861486251 (diff) | |
download | linux-fsl-qoriq-18cb7c14a0a8ba6d07c18b24e4434dc31949d5f1.tar.xz |
CIFS: Fix too big maxBuf size for SMB3 mounts
commit 2365c4eaf077c48574ab6f143960048fc0f31518 upstream.
SMB3 servers can respond with MaxTransactSize of more than 4M
that can cause a memory allocation error returned from kmalloc
in a lock codepath. Also the client doesn't support multicredit
requests now and allows buffer sizes of 65536 bytes only. Set
MaxTransactSize to this maximum supported value.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/tty/tty_port.c')
0 files changed, 0 insertions, 0 deletions