Re: [PATCH] : net : hso : unregister_netdev only if it has been registered

2019-01-27 Thread Greg KH
On Sun, Jan 27, 2019 at 08:14:33PM +, Yavuz, Tuba wrote: > > On an error path inside the hso_create_net_device function of the hso  > driver, hso_free_net_device gets called. This causes potentially a  > negative reference count in the net device if register_netdev has not  > been called

[PATCH] : net : hso : unregister_netdev only if it has been registered

2019-01-27 Thread Yavuz, Tuba
On an error path inside the hso_create_net_device function of the hso  driver, hso_free_net_device gets called. This causes potentially a  negative reference count in the net device if register_netdev has not  been called yet as hso_free_net_device calls unregister_netdev  regardless. I think