[dpdk-dev] [PATCH v2] lib/bitratestats: add NULL sanity checks

Ferruh Yigit ferruh.yigit at intel.com
Fri Jul 20 17:31:45 CEST 2018


On 7/12/2018 11:49 AM, Remy Horton wrote:
> 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: 2ad7ba9a6567 ("bitrate: add bitrate statistics library")
> 
> Signed-off-by: Remy Horton <remy.horton at intel.com>

Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>


More information about the dev mailing list