summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);