提交 ac94bf58 编写于 作者: J J. Bruce Fields

nfsd4: fix deleg leak on callback error

Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 ec8acac8
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册