diff options
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 021a05d9d800..70ad8e220343 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c | |||
@@ -323,7 +323,8 @@ static int map_create(union bpf_attr *attr) | |||
323 | return -EINVAL; | 323 | return -EINVAL; |
324 | 324 | ||
325 | if (numa_node != NUMA_NO_NODE && | 325 | if (numa_node != NUMA_NO_NODE && |
326 | (numa_node >= nr_node_ids || !node_online(numa_node))) | 326 | ((unsigned int)numa_node >= nr_node_ids || |
327 | !node_online(numa_node))) | ||
327 | return -EINVAL; | 328 | return -EINVAL; |
328 | 329 | ||
329 | /* find map type and init map: hashtable vs rbtree vs bloom vs ... */ | 330 | /* find map type and init map: hashtable vs rbtree vs bloom vs ... */ |