projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: replace macros net_random and net_srandom with direct calls to prandom
[linux-block.git]
/
net
/
ipv4
/
devinet.c
diff --git
a/net/ipv4/devinet.c
b/net/ipv4/devinet.c
index 9809f7b69728cb335e0963c92ea4c9522842849f..646023bd5449705f138fd2a01d9720a3cecc45e8 100644
(file)
--- a/
net/ipv4/devinet.c
+++ b/
net/ipv4/devinet.c
@@
-464,7
+464,7
@@
static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh,
}
if (!(ifa->ifa_flags & IFA_F_SECONDARY)) {
-
net_srandom(
ifa->ifa_local);
+
prandom_seed((__force u32)
ifa->ifa_local);
ifap = last_primary;
}