diff options
Diffstat (limited to 'kernel/bpf/core.c')
-rw-r--r-- | kernel/bpf/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 03fd23d4d587..aa6d98154106 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c | |||
@@ -1018,7 +1018,7 @@ void bpf_user_rnd_init_once(void) | |||
1018 | prandom_init_once(&bpf_user_rnd_state); | 1018 | prandom_init_once(&bpf_user_rnd_state); |
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | u64 bpf_user_rnd_u32(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5) | 1021 | BPF_CALL_0(bpf_user_rnd_u32) |
1022 | { | 1022 | { |
1023 | /* Should someone ever have the rather unwise idea to use some | 1023 | /* Should someone ever have the rather unwise idea to use some |
1024 | * of the registers passed into this function, then note that | 1024 | * 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) | |||
1031 | 1031 | ||
1032 | state = &get_cpu_var(bpf_user_rnd_state); | 1032 | state = &get_cpu_var(bpf_user_rnd_state); |
1033 | res = prandom_u32_state(state); | 1033 | res = prandom_u32_state(state); |
1034 | put_cpu_var(state); | 1034 | put_cpu_var(bpf_user_rnd_state); |
1035 | 1035 | ||
1036 | return res; | 1036 | return res; |
1037 | } | 1037 | } |