]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Fix possible wrong memory allocation
authorPavel Shilovsky <pshilovsky@samba.org>
Thu, 31 May 2012 09:03:26 +0000 (13:03 +0400)
committerSteve French <sfrench@us.ibm.com>
Fri, 1 Jun 2012 17:35:08 +0000 (12:35 -0500)
commitfa2a3bc373a2cb96d6820ae2a345c7945c7e2c05
treee324f2926e2e920bb7355ee8dc79a09df60342cf
parent39a6f4be928edac4a0aea97273a536aff279a000
CIFS: Fix possible wrong memory allocation

when cifs_reconnect sets maxBuf to 0 and we try to calculate a size
of memory we need to store locks.

Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/file.c