commit | 9fffc5c6dd7dafb2e021dbbe9a30be2566a6949a | [log] [tgz] |
---|---|---|
author | Sabrina Dubroca <sd@queasysnail.net> | Tue Apr 10 16:28:55 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 11 14:48:05 2018 -0400 |
tree | 4fa9368ac79ecd4e3aac22df21d968d6cfd5d8a1 | |
parent | 47b998653fea4ef69e3e89574956386f262bccca [diff] |
tun: set the flags before registering the netdevice Otherwise, register_netdevice advertises the creation of the device with the default flags, instead of what the user requested. Reported-by: Thomas Haller <thaller@redhat.com> Fixes: 1ec010e70593 ("tun: export flags, uid, gid, queue information over netlink") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net>