From: Pavel Shilovsky Date: Fri, 14 Feb 2014 09:31:02 +0000 (+0400) Subject: CIFS: Fix too big maxBuf size for SMB3 mounts X-Git-Tag: v3.14-rc4~35^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2365c4eaf077c48574ab6f143960048fc0f31518;p=pandora-kernel.git CIFS: Fix too big maxBuf size for SMB3 mounts 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. Cc: stable@vger.kernel.org # 3.7+ Signed-off-by: Pavel Shilovsky Acked-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed