Fix: sunrpc: null rpc_clnt dereference in rpc_task_queued tracepoint
[lttng-modules.git] / instrumentation / events / lttng-module / rpc.h
index fb131060c4fa571e77d7ac0bca192b8e211a7d96..68c622c0c63e09d7192951d3c62d750ee99b42f5 100644 (file)
@@ -176,7 +176,8 @@ LTTNG_TRACEPOINT_EVENT_CLASS(rpc_task_queued,
 
        TP_FIELDS(
                ctf_integer(unsigned int, task_id, task->tk_pid)
-               ctf_integer(unsigned int, client_id, task->tk_client->cl_clid)
+               ctf_integer(unsigned int, client_id, task->tk_client ?
+                               task->tk_client->cl_clid : -1)
                ctf_integer(unsigned long, timeout, task->tk_timeout)
                ctf_integer(unsigned long, runstate, task->tk_runstate)
                ctf_integer(int, status, task->tk_status)
This page took 0.022695 seconds and 4 git commands to generate.