projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: use get_random_bytes() when possible
[platform/kernel/linux-starfive.git]
/
net
/
sched
/
sch_pie.c
diff --git
a/net/sched/sch_pie.c
b/net/sched/sch_pie.c
index
974038b
..
265c238
100644
(file)
--- a/
net/sched/sch_pie.c
+++ b/
net/sched/sch_pie.c
@@
-72,7
+72,7
@@
bool pie_drop_early(struct Qdisc *sch, struct pie_params *params,
if (vars->accu_prob >= (MAX_PROB / 2) * 17)
return true;
-
p
random_bytes(&rnd, 8);
+
get_
random_bytes(&rnd, 8);
if ((rnd >> BITS_PER_BYTE) < local_prob) {
vars->accu_prob = 0;
return true;