summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-10-21 13:23:51 +0000
committerDamjan Marion <dmarion@0xa5.net>2022-10-24 13:20:07 +0000
commit0d36720f8d28964be2df32d354583047b6194e14 (patch)
tree7a7628ab0a74f44204e832bb1378bdcb46152343
parentcb3a6bdea948ebf97d4380cf4d93c66feaf9ec3c (diff)
vppinfra: fix incorrect sizeof() argument due to typo
fixes coverity 282527 Type: fix Fixes: fecb2524ab Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com> Change-Id: I9ac72c3802e66369a8f24c92451e33f22c058f24
-rw-r--r--src/vppinfra/linux/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c
index 5c12cb573b1..ec3328d4a29 100644
--- a/src/vppinfra/linux/mem.c
+++ b/src/vppinfra/linux/mem.c
@@ -629,7 +629,7 @@ clib_mem_set_numa_affinity (u8 numa_node, int force)
bmp = clib_bitmap_set (bmp, numa_node, 1);
rv = syscall (__NR_set_mempolicy, force ? MPOL_BIND : MPOL_PREFERRED, bmp,
- vec_len (bmp) * sizeof (bmp[0] * 8) + 1);
+ vec_len (bmp) * sizeof (bmp[0]) * 8 + 1);
clib_bitmap_free (bmp);
vec_reset_length (mm->error);