We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a0e1a8 commit bbae08eCopy full SHA for bbae08e
drivers/net/usb/qmi_wwan.c
@@ -1341,10 +1341,14 @@ static int qmi_wwan_probe(struct usb_interface *intf,
1341
static void qmi_wwan_disconnect(struct usb_interface *intf)
1342
{
1343
struct usbnet *dev = usb_get_intfdata(intf);
1344
- struct qmi_wwan_state *info = (void *)&dev->data;
+ struct qmi_wwan_state *info;
1345
struct list_head *iter;
1346
struct net_device *ldev;
1347
1348
+ /* called twice if separate control and data intf */
1349
+ if (!dev)
1350
+ return;
1351
+ info = (void *)&dev->data;
1352
if (info->flags & QMI_WWAN_FLAG_MUX) {
1353
if (!rtnl_trylock()) {
1354
restart_syscall();
0 commit comments