Re: [dpdk-dev] [PATCH v1] net/ice/base: check memory pointer before copying

2020-03-31 Thread Ye Xiaolong
On 03/31, Haiyue Wang wrote: >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: sta...@dpdk.org > >Signed-off-by: Haiyue Wang >--- > drivers/net/ice/base

[dpdk-dev] [PATCH v1] net/ice/base: check memory pointer before copying

2020-03-30 Thread Haiyue Wang
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: sta...@dpdk.org Signed-off-by: Haiyue Wang --- drivers/net/ice/base/ice_osdep.h | 16 +++- 1