net/mvneta: check allocation in Rx queue flush
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 7 Dec 2020 11:37:15 +0000 (19:37 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 18:39:08 +0000 (19:39 +0100)
commit565789662e7bc7608681cb93e3ccf7a4a2744f0b
tree3ac40c303616b1813b875d2860410767c9c4ac80
parent6f5f3b99821ea5011573f0383582ac2fd3dbb0e0
net/mvneta: check allocation in Rx queue flush

The function rte_malloc() could return NULL, the return value
need to be checked.

Fixes: ce7ea764597e ("net/mvneta: support Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Liron Himi <lironh@marvell.com>
drivers/net/mvneta/mvneta_rxtx.c