Message ID | 157012108434.20904.8998254800982940866.stgit@warthog.procyon.org.uk |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
Series | [net] rxrpc: Fix rxrpc_recvmsg tracepoint | expand |
From: David Howells <dhowells@redhat.com> Date: Thu, 03 Oct 2019 17:44:44 +0100 > 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> Applied and queued up for -stable, thanks David.
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;
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> --- include/trace/events/rxrpc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)