Commit 9ee1ba54 authored by J. Bruce Fields's avatar J. Bruce Fields

nfsd4: initialize cb_per_client

Otherwise a callback that is aborted before it runs will result in a
list_del on an uninitialized list head.
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 5ce8ba25
...@@ -866,6 +866,7 @@ void nfsd4_cb_recall(struct nfs4_delegation *dp) ...@@ -866,6 +866,7 @@ void nfsd4_cb_recall(struct nfs4_delegation *dp)
cb->cb_ops = &nfsd4_cb_recall_ops; cb->cb_ops = &nfsd4_cb_recall_ops;
dp->dl_retries = 1; dp->dl_retries = 1;
INIT_LIST_HEAD(&cb->cb_per_client);
cb->cb_done = true; cb->cb_done = true;
run_nfsd4_cb(&dp->dl_recall); run_nfsd4_cb(&dp->dl_recall);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment