aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/net/zd1201.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/net/zd1201.c b/drivers/usb/net/zd1201.c
index eb0bff535b3c..3b387b005739 100644
--- a/drivers/usb/net/zd1201.c
+++ b/drivers/usb/net/zd1201.c
@@ -1905,6 +1905,9 @@ static int zd1201_resume(struct usb_interface *interface)
1905{ 1905{
1906 struct zd1201 *zd = usb_get_intfdata(interface); 1906 struct zd1201 *zd = usb_get_intfdata(interface);
1907 1907
1908 if (!zd || !zd->dev)
1909 return -ENODEV;
1910
1908 netif_device_attach(zd->dev); 1911 netif_device_attach(zd->dev);
1909 1912
1910 if (zd->was_enabled) 1913 if (zd->was_enabled)