From: David Howells Date: Thu, 3 Oct 2019 16:44:44 +0000 (+0100) Subject: rxrpc: Fix rxrpc_recvmsg tracepoint X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~3688^2~12 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=db9b2e0af605e7c994784527abfd9276cabd718a;p=linux.git rxrpc: Fix rxrpc_recvmsg tracepoint 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 Signed-off-by: David S. Miller --- diff --git a/include/trace/events/rxrpc.h b/include/trace/events/rxrpc.h index a13a62db3565..edc5c887a44c 100644 --- a/include/trace/events/rxrpc.h +++ b/include/trace/events/rxrpc.h @@ -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;