sunrpc: fix error path in module_init
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 9 May 2007 09:34:51 +0000 (02:34 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:54 +0000 (12:30 -0700)
commit5bd5f5812bfa753218e02cb773e06ede48055798
tree266b416bca305ff32cf121490d31fd1b6bf32a75
parentcd123012d99fde4759500fee611e724e4f3016e3
sunrpc: fix error path in module_init

register_rpc_pipefs() needs to clean up rpc_inode_cache
by kmem_cache_destroy() on register_filesystem() failure.

init_sunrpc() needs to unregister rpc_pipe_fs by unregister_rpc_pipefs()
when rpc_init_mempool() returns error.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/sunrpc/rpc_pipe.c
net/sunrpc/sunrpc_syms.c