Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[linux-drm-fsl-dcu.git] / net / core / rtnetlink.c
index 5ff949dc954fa46d0f4787be2a3646205b69f408..2c5a0a06c4ce3053a4a6c6afa3437f3a47f2d08c 100644 (file)
@@ -1381,6 +1381,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]) {