eventdev: check allocation in Tx adapter
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 27 Jul 2020 14:03:14 +0000 (22:03 +0800)
committerJerin Jacob <jerinj@marvell.com>
Thu, 15 Oct 2020 19:20:26 +0000 (21:20 +0200)
commite3eebdced05c471327353a773640fec929cb298b
treeb5f9e6c0222b19ab681633175bd4bb5c1440c252
parent62303b08b7ce016d3924caf73802df18730a3d7b
eventdev: check allocation in Tx adapter

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

Fixes: a3bbf2e09756 ("eventdev: add eth Tx adapter implementation")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
lib/librte_eventdev/rte_event_eth_tx_adapter.c