net/ipv6: don't reinitialize ndev->cnf.addr_gen_mode on new inet6_dev
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 9 Jul 2018 10:25:15 +0000 (12:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 05:50:45 +0000 (22:50 -0700)
commit70c30d76e580fe4aefe6facdf0f1edb1aa9a0e7a
tree91b98717ded85e0ebcaeaea386eb4e32406bb670
parentc6dbf7aaa48289d2eeacbef06785c069869ed0c0
net/ipv6: don't reinitialize ndev->cnf.addr_gen_mode on new inet6_dev

The value has already been copied from this netns's devconf_dflt, it
shouldn't be reset to the global kernel default.

Fixes: d35a00b8e33d ("net/ipv6: allow sysctl to change link-local address generation mode")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c