OSDN Git Service

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)
commit0013fb4ca3171c64a4a5d3851fb591bb575e7f04
treee324f2926e2e920bb7355ee8dc79a09df60342cf
parent51eab603f5c86dd1eae4c525df3e7f7eeab401d6
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