diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2022-10-21 13:23:51 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2022-10-24 13:21:54 +0000 |
commit | f06253edb0fad24e5299796623a478b3e72a0f74 (patch) | |
tree | 17097e26e0c7b935bab0a0e521f3e3521a6b1c8d /src | |
parent | e3618c1960c473f033dd8dcf2dfb0fb4ff661eb0 (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
(cherry picked from commit 0d36720f8d28964be2df32d354583047b6194e14)
Diffstat (limited to 'src')
-rw-r--r-- | src/vppinfra/linux/mem.c | 2 |
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); |