From 754f79c36a93adf7ef421181526338e0ac4bf763 Mon Sep 17 00:00:00 2001 From: Marvin Liu Date: Fri, 5 May 2023 23:03:46 +0800 Subject: memif: fix coverity warnings Type: fix Signed-off-by: Marvin Liu Change-Id: Ie3f390be16df81f6824344034377f9a6f4fa9f92 --- src/plugins/memif/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/memif/device.c') diff --git a/src/plugins/memif/device.c b/src/plugins/memif/device.c index ff6068f8243..ba4a19a5fe3 100644 --- a/src/plugins/memif/device.c +++ b/src/plugins/memif/device.c @@ -611,7 +611,7 @@ no_free_slots: if (PREDICT_TRUE (!fallback)) { vlib_dma_batch_set_cookie (vm, b, - (mif_id << 16) | (mq - mif->tx_queues)); + ((u64) mif_id << 16) | (mq - mif->tx_queues)); vlib_dma_batch_submit (vm, b); dma_info->finished = 0; -- cgit 1.2.3-korg