SUNRPC: Fix general protection fault in trace_rpc_xdr_overflow()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 23 Oct 2020 14:41:07 +0000 (10:41 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 5 Nov 2020 22:20:12 +0000 (17:20 -0500)
commitd321ff589c16d8c2207485a6d7fbdb14e873d46e
tree77c5378ad2cffdb649d49d5eff95ea37c7eccdbb
parent1905cac9d621a10358bc2750f8b25b64df439a21
SUNRPC: Fix general protection fault in trace_rpc_xdr_overflow()

The TP_fast_assign() section is careful enough not to dereference
xdr->rqst if it's NULL. The TP_STRUCT__entry section is not.

Fixes: 5582863f450c ("SUNRPC: Add XDR overflow trace event")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/trace/events/sunrpc.h