numam-dpdk/lib/librte_bitratestats
Remy Horton 90b0e5aaf4 bitrate: add sanity check on parameters
If rte_stats_bitrate_reg() or rte_stats_bitrate_calc() are
passed NULL as the parameter for the stats structure, the
result is a crash. Fixed by adding a sanity check that makes
sure the passed-in pointer is not NULL.

Fixes: 2ad7ba9a65 ("bitrate: add bitrate statistics library")
Cc: stable@dpdk.org

Signed-off-by: Remy Horton <remy.horton@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-07-26 20:07:57 +02:00
..
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build bitratestats: fix library version in meson build 2018-03-28 00:07:35 +02:00
rte_bitrate.c bitrate: add sanity check on parameters 2018-07-26 20:07:57 +02:00
rte_bitrate.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_bitratestats_version.map bitrate: add bitrate statistics library 2017-04-05 17:59:43 +02:00