aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-01-13 17:08:19 -0500
committerJ. Bruce Fields <bfields@redhat.com>2011-01-13 21:04:06 -0500
commit9ee1ba5402e9d35fb35f8e61c968f4987b5fb443 (patch)
tree2f513ebaab9558dac9a3d7e37cb3422a972c082f
parent5ce8ba25d657a71d6d8cdb05a2b90c5ae7debfda (diff)
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: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/nfs4callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index f1d9dd45553a..209e186386a0 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -866,6 +866,7 @@ void nfsd4_cb_recall(struct nfs4_delegation *dp)
866 cb->cb_ops = &nfsd4_cb_recall_ops; 866 cb->cb_ops = &nfsd4_cb_recall_ops;
867 dp->dl_retries = 1; 867 dp->dl_retries = 1;
868 868
869 INIT_LIST_HEAD(&cb->cb_per_client);
869 cb->cb_done = true; 870 cb->cb_done = true;
870 871
871 run_nfsd4_cb(&dp->dl_recall); 872 run_nfsd4_cb(&dp->dl_recall);