lkml.org 
[lkml]   [2019]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.3 139/166] rxrpc: Fix rxrpc_recvmsg tracepoint
    Date
    From: David Howells <dhowells@redhat.com>

    [ 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>
    ---
    include/trace/events/rxrpc.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- 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;

    \
     
     \ /
      Last update: 2019-10-06 19:46    [W:2.858 / U:0.400 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site