Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
cb3a6bd
)
vppinfra: fix incorrect sizeof() argument due to typo
03/37503/2
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Fri, 21 Oct 2022 13:23:51 +0000
(13:23 +0000)
committer
Damjan Marion
<dmarion@0xa5.net>
Mon, 24 Oct 2022 13:20:07 +0000
(13:20 +0000)
fixes coverity 282527
Type: fix
Fixes:
fecb2524ab
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I9ac72c3802e66369a8f24c92451e33f22c058f24
src/vppinfra/linux/mem.c
patch
|
blob
|
history
diff --git
a/src/vppinfra/linux/mem.c
b/src/vppinfra/linux/mem.c
index
5c12cb5
..
ec3328d
100644
(file)
--- 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);