|
@@ -705,6 +705,8 @@ ecm_bind(struct usb_configuration *c, struct usb_function *f)
|
|
ecm_opts->bound = true;
|
|
ecm_opts->bound = true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ ecm_string_defs[1].s = ecm->ethaddr;
|
|
|
|
+
|
|
us = usb_gstrings_attach(cdev, ecm_strings,
|
|
us = usb_gstrings_attach(cdev, ecm_strings,
|
|
ARRAY_SIZE(ecm_string_defs));
|
|
ARRAY_SIZE(ecm_string_defs));
|
|
if (IS_ERR(us))
|
|
if (IS_ERR(us))
|
|
@@ -928,7 +930,6 @@ static struct usb_function *ecm_alloc(struct usb_function_instance *fi)
|
|
mutex_unlock(&opts->lock);
|
|
mutex_unlock(&opts->lock);
|
|
return ERR_PTR(-EINVAL);
|
|
return ERR_PTR(-EINVAL);
|
|
}
|
|
}
|
|
- ecm_string_defs[1].s = ecm->ethaddr;
|
|
|
|
|
|
|
|
ecm->port.ioport = netdev_priv(opts->net);
|
|
ecm->port.ioport = netdev_priv(opts->net);
|
|
mutex_unlock(&opts->lock);
|
|
mutex_unlock(&opts->lock);
|