add check for rte_bbdev_callback_register() retun
Coverity issue: 257027
Fixes:
f714a18885a6 ("app/testbbdev: add test application for bbdev")
Signed-off-by: Amr Mokhtar <amr.mokhtar@intel.com>
throughput_function = throughput_intr_lcore_enc;
/* Dequeue interrupt callback registration */
- rte_bbdev_callback_register(ad->dev_id, RTE_BBDEV_EVENT_DEQUEUE,
- dequeue_event_callback,
+ ret = rte_bbdev_callback_register(ad->dev_id,
+ RTE_BBDEV_EVENT_DEQUEUE, dequeue_event_callback,
&t_params);
+ if (ret < 0)
+ return ret;
} else {
if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC)
throughput_function = throughput_pmd_lcore_dec;