projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86/smpboot: Init apic mapping before usage
[cascardo/linux.git]
/
kernel
/
bpf
/
core.c
diff --git
a/kernel/bpf/core.c
b/kernel/bpf/core.c
index
03fd23d
..
aa6d981
100644
(file)
--- a/
kernel/bpf/core.c
+++ b/
kernel/bpf/core.c
@@
-1018,7
+1018,7
@@
void bpf_user_rnd_init_once(void)
prandom_init_once(&bpf_user_rnd_state);
}
prandom_init_once(&bpf_user_rnd_state);
}
-
u64 bpf_user_rnd_u32(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5
)
+
BPF_CALL_0(bpf_user_rnd_u32
)
{
/* Should someone ever have the rather unwise idea to use some
* of the registers passed into this function, then note that
{
/* Should someone ever have the rather unwise idea to use some
* of the registers passed into this function, then note that
@@
-1031,7
+1031,7
@@
u64 bpf_user_rnd_u32(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5)
state = &get_cpu_var(bpf_user_rnd_state);
res = prandom_u32_state(state);
state = &get_cpu_var(bpf_user_rnd_state);
res = prandom_u32_state(state);
- put_cpu_var(state);
+ put_cpu_var(
bpf_user_rnd_
state);
return res;
}
return res;
}