diff options
Diffstat (limited to 'drivers/usb/gadget/f_subset.c')
-rw-r--r-- | drivers/usb/gadget/f_subset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c index 4060c0bd9785..deb437c3b53e 100644 --- a/drivers/usb/gadget/f_subset.c +++ b/drivers/usb/gadget/f_subset.c | |||
@@ -370,9 +370,9 @@ fail: | |||
370 | usb_free_descriptors(f->hs_descriptors); | 370 | usb_free_descriptors(f->hs_descriptors); |
371 | 371 | ||
372 | /* we might as well release our claims on endpoints */ | 372 | /* we might as well release our claims on endpoints */ |
373 | if (geth->port.out_ep->desc) | 373 | if (geth->port.out_ep) |
374 | geth->port.out_ep->driver_data = NULL; | 374 | geth->port.out_ep->driver_data = NULL; |
375 | if (geth->port.in_ep->desc) | 375 | if (geth->port.in_ep) |
376 | geth->port.in_ep->driver_data = NULL; | 376 | geth->port.in_ep->driver_data = NULL; |
377 | 377 | ||
378 | ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); | 378 | ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); |