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
This commit is contained in:
Andrew Yourtchenko
committed by
Damjan Marion
parent
cb3a6bdea9
commit
0d36720f8d
@ -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);
|
||||
|
Reference in New Issue
Block a user