net/ice/base: fix memory allocation for MAC addresses
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 17 Mar 2021 06:02:19 +0000 (14:02 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 24 Mar 2021 13:06:00 +0000 (14:06 +0100)
commit78b52e3878c6496748cba2028f8cb9080435cb46
tree961c324a3290538444cc3a4e848764c610c30e6a
parente77f5dc83decf2704ac356b0b6e9a23e5cc3680b
net/ice/base: fix memory allocation for MAC addresses

Not enough memory be allocated for dev->data->mac_address which
cause out of bound memory access when iterate all mac addresses by
dev_info.max_mac_addrs.

Fixes: f9cf4f864150 ("net/ice: support device initialization")
Cc: stable@dpdk.org
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/ice_ethdev.c