Re: [dpdk-dev] [PATCH] net/mlx4: fix drop queue mem alloc failure handle

2020-05-11 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Michael Baum > Sent: Wednesday, May 6, 2020 7:28 PM > To: dev@dpdk.org > Cc: Matan Azrad ; Slava Ovsiienko > ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx4: fix drop queue mem alloc failure >

[dpdk-dev] [PATCH] net/mlx4: fix drop queue mem alloc failure handle

2020-05-06 Thread Michael Baum
The function mlx4_drop_get() creates pointer to a struct mlx4_drop and if needed allocates by rte_malloc. If the allocation is failed the function goes to label “error”, and there does dereference to a null pointer. Skip resources cleaning when the memory allocation is failed. Coverity issue: 14