SUNRPC: Fix a NULL pointer deref in trace_svc_stats_latency()
authorChuck Lever <chuck.lever@oracle.com>
Thu, 5 Aug 2021 19:11:24 +0000 (15:11 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 17 Aug 2021 15:47:53 +0000 (11:47 -0400)
commit5c11720767f70d34357d00a15ba5a0ad052c40fe
tree33886563ba8dc0bdd7aacbb599351e8422209912
parentea49dc79002c416a9003f3204bc14f846a0dbcae
SUNRPC: Fix a NULL pointer deref in trace_svc_stats_latency()

Some paths through svc_process() leave rqst->rq_procinfo set to
NULL, which triggers a crash if tracing happens to be enabled.

Fixes: 89ff87494c6e ("SUNRPC: Display RPC procedure names instead of proc numbers")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc.h
include/trace/events/sunrpc.h
net/sunrpc/svc.c