From: J. Bruce Fields Date: Thu, 13 Jan 2011 22:08:19 +0000 (-0500) Subject: nfsd4: initialize cb_per_client X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ee1ba5402e9d35fb35f8e61c968f4987b5fb443;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 --- diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index f1d9dd45553..209e186386a 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -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);