[PATCH] net: hso: do not unregister if not registered

2019-02-09 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 dr

Re: [PATCH] net: hso: do not unregister if not registered

2019-02-08 Thread Yavuz, Tuba
I just resubmitted the patch and made sure to send it in plaintext. Hopefully, it will work this time. Best, Tuba From: David Miller Sent: Friday, February 8, 2019 6:08 PM To: Yavuz, Tuba Cc: netdev@vger.kernel.org Subject: Re: [PATCH] net: hso: do not

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

2019-02-08 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 dr

[PATCH] net: hso: do not unregister if not registered

2019-02-05 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 dri

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

2019-02-05 Thread Yavuz, Tuba
l.edu/ Email: t...@ece.ufl.edu Phone: (352) 846 0202 From: David Miller Sent: Tuesday, February 5, 2019 7:36 PM To: Yavuz, Tuba Cc: netdev@vger.kernel.org Subject: Re: [PATCH]: net: hso: do not call unregister if not registered From: "Yavuz, Tuba"

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

2019-02-05 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 dr

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 + >

[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

Re: Error in the hso driver

2019-01-27 Thread Yavuz, Tuba
Electrical and Computer Engineering Department University of Florida Gainesville, FL 32611 Webpage: http://www.tuba.ece.ufl.edu/ Email: t...@ece.ufl.edu Phone: (352) 846 0202 From: Andrew Lunn Sent: Sunday, January 27, 2019 3:19 PM To: Yavuz, Tuba Cc: Greg KH

[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

Re: Error in the hso driver

2019-01-27 Thread Yavuz, Tuba
le, FL 32611 Webpage: http://www.tuba.ece.ufl.edu/ Email: t...@ece.ufl.edu Phone: (352) 846 0202 From: Greg KH Sent: Sunday, January 27, 2019 2:35 PM To: Yavuz, Tuba Cc: netdev@vger.kernel.org; da...@davemloft.net Subject: Re: Error in the hso driver On