nfsd4: fix deleg leak on callback error

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
J. Bruce Fields 2010-05-31 19:06:39 -04:00
parent ec8acac84a
commit ac94bf5825
1 changed files with 3 additions and 1 deletions

View File

@ -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;