summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-10-03 17:44:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-07 18:58:21 +0200
commite752bb81ed39ee010017e08db3b3acba660f188e (patch)
tree8893d0168146b1f6640106e5694680f368ef8c99 /include
parent7fc879a38f81e80d14d6fe23d53467fe130f63f5 (diff)
downloadlinux-stable-e752bb81ed39ee010017e08db3b3acba660f188e.tar.gz
linux-stable-e752bb81ed39ee010017e08db3b3acba660f188e.tar.bz2
linux-stable-e752bb81ed39ee010017e08db3b3acba660f188e.zip
rxrpc: Fix rxrpc_recvmsg tracepoint
[ Upstream commit db9b2e0af605e7c994784527abfd9276cabd718a ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/rxrpc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/rxrpc.h b/include/trace/events/rxrpc.h
index fa06b528c73c..0972c48d81d7 100644
--- a/include/trace/events/rxrpc.h
+++ b/include/trace/events/rxrpc.h
@@ -1071,7 +1071,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;