]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: fix crash in rpc_malloc()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 9 May 2007 06:30:11 +0000 (08:30 +0200)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 May 2007 21:58:00 +0000 (17:58 -0400)
commit7ed31323daa14265551b52b477e40ddff1606094
tree29995b5d0ad7fcab114d388b4ab1675e32ba963e
parent22e3989f3c0fe7b6fa43c184dfa30dd24b4e4aff
sunrpc: fix crash in rpc_malloc()

While the comment says:
 * To prevent rpciod from hanging, this allocator never sleeps,
 * returning NULL if the request cannot be serviced immediately.

The function does not actually check for NULL pointers being returned.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/sched.c