diff --git a/drivers/isdn/gigaset/usb-gigaset.c b/drivers/isdn/gigaset/usb-gigaset.c index 1b9b43659bdf..61eed0d92e41 100644 --- a/drivers/isdn/gigaset/usb-gigaset.c +++ b/drivers/isdn/gigaset/usb-gigaset.c @@ -703,6 +703,8 @@ static int gigaset_probe(struct usb_interface *interface, usb_set_intfdata(interface, cs); endpoint = &hostif->endpoint[0].desc; + if (!endpoint) + return -ENODEV; buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); ucs->bulk_out_size = buffer_size;