SUNRPC: Cleanup - make rpc_new_task() call rpc_release_calldata on failure
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 16 Apr 2010 20:41:10 +0000 (16:41 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 14 May 2010 19:09:29 +0000 (15:09 -0400)
commit19445b99b6d66af661c586c052de23110731a502
treeb5a77b701b466598af631ef5a7db705f6e7c59ad
parentee5ebe851ed60206f150d3f189416f9c63245b66
SUNRPC: Cleanup - make rpc_new_task() call rpc_release_calldata on failure

Also have it return an ERR_PTR(-ENOMEM) instead of a null pointer.

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c
net/sunrpc/sched.c