projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ce8ba2
)
nfsd4: initialize cb_per_client
author
J. Bruce Fields
<bfields@redhat.com>
Thu, 13 Jan 2011 22:08:19 +0000
(17:08 -0500)
committer
J. Bruce Fields
<bfields@redhat.com>
Fri, 14 Jan 2011 02:04:06 +0000
(21:04 -0500)
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>
fs/nfsd/nfs4callback.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4callback.c
b/fs/nfsd/nfs4callback.c
index f1d9dd45553a51f62ee5c853c11aa528d8a1d73d..209e186386a00c3d6a4f9f7cfcd4eea27847fc86 100644
(file)
--- 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);