Re: [Patch net] tun: call dev_get_valid_name() before register_netdevice()

2017-10-16 Thread David Miller
From: Cong Wang Date: Fri, 13 Oct 2017 11:58:53 -0700 > register_netdevice() could fail early when we have an invalid > dev name, in which case ->ndo_uninit() is not called. For tun > device, this is a problem because a timer etc. are already > initialized and it

[Patch net] tun: call dev_get_valid_name() before register_netdevice()

2017-10-13 Thread Cong Wang
register_netdevice() could fail early when we have an invalid dev name, in which case ->ndo_uninit() is not called. For tun device, this is a problem because a timer etc. are already initialized and it expects ->ndo_uninit() to clean them up. We could move these initializations into a