|
@@ -1179,6 +1179,9 @@ static int acm_probe(struct usb_interface *intf,
|
|
if (quirks == NO_UNION_NORMAL) {
|
|
if (quirks == NO_UNION_NORMAL) {
|
|
data_interface = usb_ifnum_to_if(usb_dev, 1);
|
|
data_interface = usb_ifnum_to_if(usb_dev, 1);
|
|
control_interface = usb_ifnum_to_if(usb_dev, 0);
|
|
control_interface = usb_ifnum_to_if(usb_dev, 0);
|
|
|
|
+ /* we would crash */
|
|
|
|
+ if (!data_interface || !control_interface)
|
|
|
|
+ return -ENODEV;
|
|
goto skip_normal_probe;
|
|
goto skip_normal_probe;
|
|
}
|
|
}
|
|
|
|
|