[PATCH] SMB: fix memory leak in smb3_validate_negotiate

2017-10-20 Thread shuwang
From: Shu Wang Found the issue by kmemleak. The pointer pneg_rsp stores the pointer kmalloced from SMB2_ioctl, and should be release before function return. unreferenced object 0x88018c2b1900 (size 32): backtrace: kmemleak_alloc+0x4a/0xa0 __kmalloc+0xec/0x220 SMB2_ioctl+0x27a/0

[PATCH] SMB fix

2005-07-15 Thread J.A. Magallon
On 07.16, J.A. Magallon wrote: > > On 07.15, Andrew Morton wrote: > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13-rc3/2.6.13-rc3-mm1/ > > --- linux-2.6.12/fs/smbfs/request.c~2005-07-07 14:41:11.0 -0400 +++ linux-2.6.12/fs/smbfs/request.c 2005-07-07