summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/i1480/dfu/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb/i1480/dfu/usb.c')
-rw-r--r--drivers/uwb/i1480/dfu/usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/uwb/i1480/dfu/usb.c b/drivers/uwb/i1480/dfu/usb.c
index 2bfc846..6345e85 100644
--- a/drivers/uwb/i1480/dfu/usb.c
+++ b/drivers/uwb/i1480/dfu/usb.c
@@ -362,6 +362,9 @@ int i1480_usb_probe(struct usb_interface *iface, const struct usb_device_id *id)
result);
}
+ if (iface->cur_altsetting->desc.bNumEndpoints < 1)
+ return -ENODEV;
+
result = -ENOMEM;
i1480_usb = kzalloc(sizeof(*i1480_usb), GFP_KERNEL);
if (i1480_usb == NULL) {
OpenPOWER on IntegriCloud