Skip to content

Commit e752bb8

Browse files
dhowellsgregkh
authored andcommitted
rxrpc: Fix rxrpc_recvmsg tracepoint
[ Upstream commit db9b2e0 ] 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 <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7fc879a commit e752bb8

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
@@ -1071,7 +1071,7 @@ TRACE_EVENT(rxrpc_recvmsg,
10711071
),
10721072

10731073
TP_fast_assign(
1074-
__entry->call = call->debug_id;
1074+
__entry->call = call ? call->debug_id : 0;
10751075
__entry->why = why;
10761076
__entry->seq = seq;
10771077
__entry->offset = offset;

0 commit comments

Comments
 (0)