Commit 33f30a20 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: usbnet shouldn't oops on cdc error path

If the string descriptor fetch works, no problem.  Else
make the disconnect() logic -- newly called because of
"recent" changes to interface claiming logic -- use its
fast cleanup path, since we're still not fully set up yet.

Should resolve OSDL bugid 2714; please merge.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 988fab6f
......@@ -1157,6 +1157,7 @@ static int cdc_bind (struct usbnet *dev, struct usb_interface *intf)
status = get_ethernet_addr (dev, info->ether);
if (status < 0) {
usb_set_intfdata(info->data, NULL);
usb_driver_release_interface (&usbnet_driver, info->data);
return status;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment