|
@@ -2515,6 +2515,11 @@ static int imon_probe(struct usb_interface *interface,
|
|
mutex_lock(&driver_lock);
|
|
mutex_lock(&driver_lock);
|
|
|
|
|
|
first_if = usb_ifnum_to_if(usbdev, 0);
|
|
first_if = usb_ifnum_to_if(usbdev, 0);
|
|
|
|
+ if (!first_if) {
|
|
|
|
+ ret = -ENODEV;
|
|
|
|
+ goto fail;
|
|
|
|
+ }
|
|
|
|
+
|
|
first_if_ctx = usb_get_intfdata(first_if);
|
|
first_if_ctx = usb_get_intfdata(first_if);
|
|
|
|
|
|
if (ifnum == 0) {
|
|
if (ifnum == 0) {
|