[dpdk-dev] [PATCH] net/ice: fix illegal pointer access in dev init

Stephen Hemminger stephen at networkplumber.org
Thu Apr 1 04:37:10 CEST 2021


On Thu,  1 Apr 2021 13:24:53 +0000
Wenwu Ma <wenwux.ma at intel.com> wrote:

> +	dev->data->mac_addrs = rte_zmalloc(NULL,
> +		sizeof(struct rte_ether_addr) * ICE_NUM_MACADDR_MAX, 0);

This looks like a good place to use rte_calloc().


More information about the dev mailing list