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
/
core.c
diff --git
a/kernel/bpf/core.c
b/kernel/bpf/core.c
index 53c6c98bda7b6d6bea42e66db40de2b6be94b925..25a54e04560e5370635bd31dd007db754ecfae46 100644
(file)
--- a/
kernel/bpf/core.c
+++ b/
kernel/bpf/core.c
@@
-1216,7
+1216,7
@@
static int bpf_jit_blind_insn(const struct bpf_insn *from,
bool emit_zext)
{
struct bpf_insn *to = to_buff;
- u32 imm_rnd = get_random_
int
();
+ u32 imm_rnd = get_random_
u32
();
s16 off;
BUILD_BUG_ON(BPF_REG_AX + 1 != MAX_BPF_JIT_REG);