This patch fixes the variable 'events' may be used uninitialized. Fixes: 3c89e8c42022 ("eventdev/dma: support adapter service function") Cc: sta...@dpdk.org
Signed-off-by: Wenwu Ma <wenwux...@intel.com> --- lib/eventdev/rte_event_dma_adapter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/eventdev/rte_event_dma_adapter.c b/lib/eventdev/rte_event_dma_adapter.c index ff2bc408c1..3c05fb615f 100644 --- a/lib/eventdev/rte_event_dma_adapter.c +++ b/lib/eventdev/rte_event_dma_adapter.c @@ -655,6 +655,7 @@ edma_ops_enqueue_burst(struct event_dma_adapter *adapter, struct rte_event_dma_a nb_ev = 0; retry = 0; nb_enqueued = 0; + memset(events, 0, sizeof(events)); num = RTE_MIN(num, DMA_BATCH_SIZE); for (i = 0; i < num; i++) { struct rte_event *ev = &events[nb_ev++]; -- 2.34.1