service: fix possible null access
Fixes: 21698354c832 ("service: introduce service cores concept") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
This commit is contained in:
parent
9eb0688412
commit
c8b506e4b6
@ -795,6 +795,9 @@ rte_service_dump_one(FILE *f, struct rte_service_spec_impl *s,
|
||||
return;
|
||||
}
|
||||
|
||||
if (f == NULL)
|
||||
return;
|
||||
|
||||
fprintf(f, " %s: stats %d\tcalls %"PRIu64"\tcycles %"
|
||||
PRIu64"\tavg: %"PRIu64"\n",
|
||||
s->spec.name, service_stats_enabled(s), s->calls,
|
||||
|
Loading…
x
Reference in New Issue
Block a user