diff options
| author | Trond Myklebust <[email protected]> | 2018-10-09 19:54:15 +0000 |
|---|---|---|
| committer | J. Bruce Fields <[email protected]> | 2018-10-29 20:58:04 +0000 |
| commit | bb6ad5572c0022e17e846b382d7413cdcf8055be (patch) | |
| tree | 9dd0c1cad4f1f1ae8188e3808a38aa0fdd7cf669 | |
| parent | nfsd: correctly decrement odstate refcount in error path (diff) | |
| download | kernel-bb6ad5572c0022e17e846b382d7413cdcf8055be.tar.gz kernel-bb6ad5572c0022e17e846b382d7413cdcf8055be.zip | |
nfsd: Fix an Oops in free_session()
In call_xpt_users(), we delete the entry from the list, but we
do not reinitialise it. This triggers the list poisoning when
we later call unregister_xpt_user() in nfsd4_del_conns().
Signed-off-by: Trond Myklebust <[email protected]>
Cc: [email protected]
Signed-off-by: J. Bruce Fields <[email protected]>
| -rw-r--r-- | net/sunrpc/svc_xprt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 5185efb9027b..83ccd0221c98 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -989,7 +989,7 @@ static void call_xpt_users(struct svc_xprt *xprt) spin_lock(&xprt->xpt_lock); while (!list_empty(&xprt->xpt_users)) { u = list_first_entry(&xprt->xpt_users, struct svc_xpt_user, list); - list_del(&u->list); + list_del_init(&u->list); u->callback(u); } spin_unlock(&xprt->xpt_lock); |
