]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tun: set the flags before registering the netdevice
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 10 Apr 2018 14:28:55 +0000 (16:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Apr 2018 18:48:05 +0000 (14:48 -0400)
commit9fffc5c6dd7dafb2e021dbbe9a30be2566a6949a
tree4fa9368ac79ecd4e3aac22df21d968d6cfd5d8a1
parent47b998653fea4ef69e3e89574956386f262bccca
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>
drivers/net/tun.c