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
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[platform/kernel/linux-starfive.git]
/
net
/
netfilter
/
xt_connlimit.c
diff --git
a/net/netfilter/xt_connlimit.c
b/net/netfilter/xt_connlimit.c
index
7671e82
..
c40b269
100644
(file)
--- a/
net/netfilter/xt_connlimit.c
+++ b/
net/netfilter/xt_connlimit.c
@@
-229,7
+229,7
@@
static int connlimit_mt_check(const struct xt_mtchk_param *par)
u_int32_t rand;
do {
-
rand = prandom_u32(
);
+
get_random_bytes(&rand, sizeof(rand)
);
} while (!rand);
cmpxchg(&connlimit_rnd, 0, rand);
}