[PATCH] knfsd: nfsd4: fix memory leak on kmalloc failure in savemem
commita4db5fe5dfb3a5b5b550f1acd95ef3de01a3f063
authorJ. Bruce Fields <bfields@snoopy.citi.umich.edu>
Fri, 16 Feb 2007 09:28:30 +0000 (16 01:28 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 16 Feb 2007 16:14:01 +0000 (16 08:14 -0800)
tree38d4ebad2877789d481185c973dbba449cbaee61
parent28e05dd8457c7a7fa1c3faac169a95e0ce4b4a12
[PATCH] knfsd: nfsd4: fix memory leak on kmalloc failure in savemem

The wrong pointer is being kfree'd in savemem() when defer_free returns with
an error.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfsd/nfs4xdr.c