Skip to content

Commit

Permalink
nfsd4: initialize cb_per_client
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J. Bruce Fields committed Jan 14, 2011
1 parent 5ce8ba2 commit 9ee1ba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,7 @@ void nfsd4_cb_recall(struct nfs4_delegation *dp)
cb->cb_ops = &nfsd4_cb_recall_ops;
dp->dl_retries = 1;

INIT_LIST_HEAD(&cb->cb_per_client);
cb->cb_done = true;

run_nfsd4_cb(&dp->dl_recall);
Expand Down

0 comments on commit 9ee1ba5

Please sign in to comment.