Message ID | 20110317121638.15035.39410.stgit@localhost6.localdomain6 (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Trond Myklebust |
Headers | show |
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 57d344c..24039fe 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -436,7 +436,9 @@ void rpc_killall_tasks(struct rpc_clnt *clnt) if (!(rovr->tk_flags & RPC_TASK_KILLED)) { rovr->tk_flags |= RPC_TASK_KILLED; rpc_exit(rovr, -EIO); - rpc_wake_up_queued_task(rovr->tk_waitqueue, rovr); + if (rovr->tk_waitqueue) + rpc_wake_up_queued_task(rovr->tk_waitqueue, + rovr); } } spin_unlock(&clnt->cl_lock);