projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: use get_random_u32() when possible
[linux-block.git]
/
kernel
/
bpf
/
hashtab.c
diff --git
a/kernel/bpf/hashtab.c
b/kernel/bpf/hashtab.c
index ed3f8a53603b9175bb62e5721afb9be7e1c28af7..f39ee3e0558976fc593f81b8ad6c221df0ba4806 100644
(file)
--- a/
kernel/bpf/hashtab.c
+++ b/
kernel/bpf/hashtab.c
@@
-527,7
+527,7
@@
static struct bpf_map *htab_map_alloc(union bpf_attr *attr)
if (htab->map.map_flags & BPF_F_ZERO_SEED)
htab->hashrnd = 0;
else
- htab->hashrnd = get_random_
int
();
+ htab->hashrnd = get_random_
u32
();
htab_init_buckets(htab);