isdn/gigaset: fix NULL-deref at probe
[pandora-kernel.git] / drivers / isdn / gigaset / bas-gigaset.c
index 492aa52..dc0b0b8 100644 (file)
@@ -2314,6 +2314,9 @@ static int gigaset_probe(struct usb_interface *interface,
                return -ENODEV;
        }
 
+       if (hostif->desc.bNumEndpoints < 1)
+               return -ENODEV;
+
        dev_info(&udev->dev,
                 "%s: Device matched (Vendor: 0x%x, Product: 0x%x)\n",
                 __func__, le16_to_cpu(udev->descriptor.idVendor),