summaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-07-04 21:23:25 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-07-14 20:17:46 -0400
commit7bf2357524408b97fec58344caf7397f8140c3fd (patch)
tree58da99c5a450934ce7520e2942b039aaf4467fcf /net/core/rtnetlink.c
parentb04b3156a20d395a7faa8eed98698d1e17a36000 (diff)
downloadblackbird-op-linux-7bf2357524408b97fec58344caf7397f8140c3fd.tar.gz
blackbird-op-linux-7bf2357524408b97fec58344caf7397f8140c3fd.zip
net: feed /dev/random with the MAC address when registering a device
Cc: David Miller <davem@davemloft.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: stable@vger.kernel.org
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 21318d15bbc3..f058e599d858 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1378,6 +1378,7 @@ static int do_setlink(struct net_device *dev, struct ifinfomsg *ifm,
goto errout;
send_addr_notify = 1;
modified = 1;
+ add_device_randomness(dev->dev_addr, dev->addr_len);
}
if (tb[IFLA_MTU]) {
OpenPOWER on IntegriCloud