diff options
author | Alexander Strakh | 2009-09-01 19:02:24 +0200 |
---|---|---|
committer | Steve French | 2009-09-01 19:02:24 +0200 |
commit | 1b3859bc9e20d764316346665fc93ecea2d2b176 (patch) | |
tree | 9a643e0bf74d9b8339ae4bc45df1988ed306dc4d /fs/cifs/cifsproto.h | |
parent | [CIFS] potential NULL dereference in parse_DFS_referrals() (diff) | |
download | kernel-qcow2-linux-1b3859bc9e20d764316346665fc93ecea2d2b176.tar.gz kernel-qcow2-linux-1b3859bc9e20d764316346665fc93ecea2d2b176.tar.xz kernel-qcow2-linux-1b3859bc9e20d764316346665fc93ecea2d2b176.zip |
[CIFS] Memory leak in ntlmv2 hash calculation
in function calc_ntlmv2_hash memory is not released.
1. If in the line 333 we successfully allocate memory and assign it to
pctxt variable:
pctxt = kmalloc(sizeof(struct HMACMD5Context), GFP_KERNEL);
then we go to line 376 and exit wihout releasing memory pointed to by pctxt
variable.
Add a memory releasing for pctxt variable before exit from function
calc_ntlmv2_hash.
Signed-off-by: Alexander Strakh <strakh@ispras.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
0 files changed, 0 insertions, 0 deletions