Re: [PATCH] : net : hso : do not call unregister_netdev if not registered

2019-01-30 Thread Yavuz, Tuba
(352) 846 0202 From: David Miller Sent: Wednesday, January 30, 2019 4:58 PM To: Yavuz, Tuba Cc: netdev@vger.kernel.org Subject: Re: [PATCH] : net : hso : do not call unregister_netdev if not registered From: "Yavuz, Tuba" Date: Mon, 28 Jan 2019 16:28:38 + >

Re: [PATCH] : net : hso : do not call unregister_netdev if not registered

2019-01-30 Thread David Miller
From: "Yavuz, Tuba" Date: Mon, 28 Jan 2019 16:28:38 + > 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 hs

[PATCH] : net : hso : do not call unregister_netdev if not registered

2019-01-28 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 the