usb_gadget: composite cdc gadget fault handling
These two fixes ensure the new "CDC Composite Device" gadget fails cleanly when it's loaded on hardware that can't support this particular gadget driver. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
c24f42276b
commit
ac90e36592
@@ -124,7 +124,7 @@ static int __init cdc_do_config(struct usb_configuration *c)
|
||||
return status;
|
||||
|
||||
status = acm_bind_config(c, 0);
|
||||
if (status == 0)
|
||||
if (status < 0)
|
||||
return status;
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user