From: J. Bruce Fields Date: Mon, 31 May 2010 23:06:39 +0000 (-0400) Subject: nfsd4: fix deleg leak on callback error X-Git-Tag: MMI-PSA29.97-13-9~22387^2~31 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac94bf582529343bb7f354d0eef6dc4e566bbbd5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git nfsd4: fix deleg leak on callback error Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 874a56a0801c..a4686326b5ae 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -761,8 +761,10 @@ static void _nfsd4_cb_recall(struct nfs4_delegation *dp) .rpc_cred = callback_cred }; - if (clnt == NULL) + if (clnt == NULL) { + nfs4_put_delegation(dp); return; /* Client is shutting down; give up. */ + } args->args_op = dp; msg.rpc_argp = args;