]> git.hungrycats.org Git - linux/commit
[PATCH] kNFSd: ip_map_init does a kmalloc which isn't checked...
authorAndrew Morton <akpm@osdl.org>
Wed, 18 Feb 2004 12:50:37 +0000 (04:50 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 Feb 2004 12:50:37 +0000 (04:50 -0800)
commitbbcc5fa8698595b500772dc17840772acd9f8f86
tree21f1c9f18ccf91d9e3b6471c1300d05d1622c90c
parent9417bd876933c8d72662f15379c1e79721bbf86c
[PATCH] kNFSd: ip_map_init does a kmalloc which isn't checked...

From: NeilBrown <neilb@cse.unsw.edu.au>

There is no way to return an error from a cache init routine, so instead we
make sure to pre-allocate the memory needed, and free it after the lookup
if the lookup failed.
net/sunrpc/svcauth_unix.c