• David Howells's avatar
    rxrpc: Fix trace-after-put looking at the put call record · 48c9e0ec
    David Howells authored
    rxrpc_put_call() calls trace_rxrpc_call() after it has done the decrement
    of the refcount - which looks at the debug_id in the call record.  But
    unless the refcount was reduced to zero, we no longer have the right to
    look in the record and, indeed, it may be deleted by some other thread.
    
    Fix this by getting the debug_id out before decrementing the refcount and
    then passing that into the tracepoint.
    
    Fixes: e34d4234 ("rxrpc: Trace rxrpc_call usage")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    48c9e0ec
rxrpc.h 42.1 KB