]> git.baikalelectronics.ru Git - kernel.git/commit
net: kalmia: clean up bind error path
authorJohan Hovold <johan@kernel.org>
Wed, 7 Mar 2018 09:46:57 +0000 (10:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 20:39:27 +0000 (15:39 -0500)
commit8fbe6fcd8f09514848381e890a84703a173effc3
treebe440fa041cdf9280b72ad43e43198fd4850758f
parent7c219432c2ca495166a4f4f00bebcec468d3c24f
net: kalmia: clean up bind error path

Drop bogus call to usb_driver_release_interface() from an error path in
the usbnet bind() callback, which is called during interface probe. At
this point the interface is not bound and usb_driver_release_interface()
returns early.

Also remove the bogus call to clear the interface data, which is owned
by the usbnet driver and would not even have been set by the time bind()
is called.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kalmia.c