diff options
author | 2021-08-05 15:11:24 -0400 | |
---|---|---|
committer | 2021-08-17 11:47:53 -0400 | |
commit | 5c11720767f70d34357d00a15ba5a0ad052c40fe (patch) | |
tree | 33886563ba8dc0bdd7aacbb599351e8422209912 /include/linux/sunrpc | |
parent | NFSD: remove vanity comments (diff) | |
download | linux-5c11720767f70d34357d00a15ba5a0ad052c40fe.tar.gz linux-5c11720767f70d34357d00a15ba5a0ad052c40fe.tar.bz2 linux-5c11720767f70d34357d00a15ba5a0ad052c40fe.zip |
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>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/svc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index ab9afbf0a0d8..f0f846fa396e 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -527,6 +527,7 @@ void svc_wake_up(struct svc_serv *); void svc_reserve(struct svc_rqst *rqstp, int space); struct svc_pool * svc_pool_for_cpu(struct svc_serv *serv, int cpu); char * svc_print_addr(struct svc_rqst *, char *, size_t); +const char * svc_proc_name(const struct svc_rqst *rqstp); int svc_encode_result_payload(struct svc_rqst *rqstp, unsigned int offset, unsigned int length); |