aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/dma
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-08-26 13:13:20 +0000
committerDamjan Marion <dmarion@0xa5.net>2022-08-30 14:10:52 +0000
commita21b38e17ac5e04b6ded55904dc522bfca4933a5 (patch)
treeff7ca6c772fc9e9fc3e73c55d6bfd4bc6432c409 /src/vlib/dma
parent3c285b54aa9a17fabf356787723bf68b221ffe5e (diff)
vlib: fix coverity 277203
Fix integer overflow. Type: fix Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com> Change-Id: I72de6f88be064f188204d0f6d3167a3a8d7de58d
Diffstat (limited to 'src/vlib/dma')
-rw-r--r--src/vlib/dma/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/dma/cli.c b/src/vlib/dma/cli.c
index 0ca4a9b6778..1db59c81a2f 100644
--- a/src/vlib/dma/cli.c
+++ b/src/vlib/dma/cli.c
@@ -109,7 +109,7 @@ test_dma_command_fn (vlib_main_t *vm, unformat_input_t *input,
u32 port_allocator_seed;
- fill_random_data (from, cfg.max_transfers * rsz);
+ fill_random_data (from, (uword) cfg.max_transfers * rsz);
b = vlib_dma_batch_new (vm, config_index);
vlib_dma_batch_set_cookie (vm, b, 0x12345678);