From 0996722eac48f6aec93504429140d2c95912ceda Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Jan 2004 18:39:40 -0800 Subject: [PATCH] [PATCH] nfs: Fix an Oops in the RPC debug code... From: Trond Myklebust Enabling rpc_debug can currently result in an Oops due to an incorrect pointer check. --- include/linux/sunrpc/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 89fc9268b339a..5e2d23e0ce6c2 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h @@ -205,7 +205,7 @@ rpc_exit(struct rpc_task *task, int status) static __inline__ char * rpc_qname(struct rpc_wait_queue *q) { - return q->name? q->name : "unknown"; + return ((q && q->name) ? q->name : "unknown"); } #endif -- 2.53.0