summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-18 18:39:40 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-18 18:39:40 -0800
commit0996722eac48f6aec93504429140d2c95912ceda (patch)
tree6279f27be9599e3d54b06182a55a57edcbf06859 /include/linux
parentb85934f2311672c2684a160720e198ae4b5c8106 (diff)
[PATCH] nfs: Fix an Oops in the RPC debug code...
From: Trond Myklebust <trond.myklebust@fys.uio.no> Enabling rpc_debug can currently result in an Oops due to an incorrect pointer check.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sunrpc/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h
index 89fc9268b339..5e2d23e0ce6c 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