Skip to content

Commit

Permalink
nfsd4: fix deleg leak on callback error
Browse files Browse the repository at this point in the history
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
J. Bruce Fields committed Jun 24, 2010
1 parent ec8acac commit ac94bf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac94bf5

Please sign in to comment.