Skip to content

Commit db9b2e0

Browse files
dhowellsdavem330
authored andcommitted
rxrpc: Fix rxrpc_recvmsg tracepoint
Fix the rxrpc_recvmsg tracepoint to handle being called with a NULL call parameter. Fixes: a25e21f ("rxrpc, afs: Use debug_ids rather than pointers in traces") Signed-off-by: David Howells <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cf74ac6 commit db9b2e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/trace/events/rxrpc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ TRACE_EVENT(rxrpc_recvmsg,
10681068
),
10691069

10701070
TP_fast_assign(
1071-
__entry->call = call->debug_id;
1071+
__entry->call = call ? call->debug_id : 0;
10721072
__entry->why = why;
10731073
__entry->seq = seq;
10741074
__entry->offset = offset;

0 commit comments

Comments
 (0)