|
@@ -920,8 +920,10 @@ static int mcs_probe(struct usb_interface *intf,
|
|
|
|
|
|
ndev->netdev_ops = &mcs_netdev_ops;
|
|
ndev->netdev_ops = &mcs_netdev_ops;
|
|
|
|
|
|
- if (!intf->cur_altsetting)
|
|
|
|
|
|
+ if (!intf->cur_altsetting) {
|
|
|
|
+ ret = -ENOMEM;
|
|
goto error2;
|
|
goto error2;
|
|
|
|
+ }
|
|
|
|
|
|
ret = mcs_find_endpoints(mcs, intf->cur_altsetting->endpoint,
|
|
ret = mcs_find_endpoints(mcs, intf->cur_altsetting->endpoint,
|
|
intf->cur_altsetting->desc.bNumEndpoints);
|
|
intf->cur_altsetting->desc.bNumEndpoints);
|