rxrpc: Fix rxrpc_recvmsg tracepoint
authorDavid Howells <dhowells@redhat.com>
Thu, 3 Oct 2019 16:44:44 +0000 (17:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Oct 2019 20:57:14 +0000 (13:57 -0700)
Fix the rxrpc_recvmsg tracepoint to handle being called with a NULL call
parameter.

Fixes: a25e21f0bcd2 ("rxrpc, afs: Use debug_ids rather than pointers in traces")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/rxrpc.h

index a13a62d..edc5c88 100644 (file)
@@ -1068,7 +1068,7 @@ TRACE_EVENT(rxrpc_recvmsg,
                             ),
 
            TP_fast_assign(
-                   __entry->call = call->debug_id;
+                   __entry->call = call ? call->debug_id : 0;
                    __entry->why = why;
                    __entry->seq = seq;
                    __entry->offset = offset;