net/ice/base: check memory pointer before copying
authorHaiyue Wang <haiyue.wang@intel.com>
Tue, 31 Mar 2020 06:50:34 +0000 (14:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commit2adbccec40663c457a47391b8d704bceb579c2f0
tree0ae8a88c7499265c2811d860b7a2a1d9606ead5b
parentd2e53229001b3468e62cfb8a45dfc55751f7797a
net/ice/base: check memory pointer before copying

The ice_memdup doesn't check the new allocated memory pointer, it calls
the rte_memcpy directly. It should check it.

Fixes: 5f0978e96220 ("net/ice/base: add OS specific implementation")
Cc: stable@dpdk.org
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_osdep.h