numam-dpdk/lib/librte_eventdev
Harry van Haaren 219ae4a129 event: fix ring init failure handling
This commit fixes a bug in a 32-bit environment where the
generic ring_init() would fail, but given the interaction
with memzones the next iteration of the event_ring_autotest
would actually *pass* because the ring in question would
exist already an be looked-up.

This commit rightly error checks the result of ring_init(),
and calls rte_free() on the memory as required.

Fixes: dc39e2f359 ("eventdev: add ring structure for events")
Cc: stable@dpdk.org

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
2018-08-05 14:52:19 +02:00
..
Makefile eventdev: add interrupt driven queues to Rx adapter 2018-07-06 06:54:49 +02:00
meson.build eventdev: add interrupt driven queues to Rx adapter 2018-07-06 06:54:49 +02:00
rte_event_crypto_adapter.c cryptodev: rename experimental private data APIs 2018-07-11 03:57:24 +02:00
rte_event_crypto_adapter.h eventdev: introduce event crypto adapter 2018-05-10 14:03:57 +02:00
rte_event_eth_rx_adapter.c eventdev: add callback for Rx adapter SW transfers 2018-07-06 06:54:49 +02:00
rte_event_eth_rx_adapter.h eventdev: add callback for Rx adapter SW transfers 2018-07-06 06:54:49 +02:00
rte_event_ring.c event: fix ring init failure handling 2018-08-05 14:52:19 +02:00
rte_event_ring.h eventdev: fix MP/MC tail updates in event ring 2018-04-16 10:10:27 +02:00
rte_event_timer_adapter_pmd.h eventdev: add timer adapter common code 2018-04-16 11:04:46 +02:00
rte_event_timer_adapter.c remove useless constructor headers 2018-07-12 00:00:35 +02:00
rte_event_timer_adapter.h eventdev: add default software timer adapter 2018-04-16 11:04:46 +02:00
rte_eventdev_pmd_pci.h lib: fix missing includes in exported headers 2018-01-17 00:31:05 +01:00
rte_eventdev_pmd_vdev.h lib: fix missing includes in exported headers 2018-01-17 00:31:05 +01:00
rte_eventdev_pmd.h eventdev: add driver interface of crypto adapter 2018-05-10 14:07:37 +02:00
rte_eventdev_version.map eventdev: add callback for Rx adapter SW transfers 2018-07-06 06:54:49 +02:00
rte_eventdev.c eventdev: include PCI devices when getting id from name 2018-07-06 06:54:49 +02:00
rte_eventdev.h eventdev: add driver interface of crypto adapter 2018-05-10 14:07:37 +02:00