Hi,

My patch adding PM support for zd1201 didn't check for the device on
resume, which can oops if the device has been removed.

This patch fixes it.

Thanks,

Signed-off-by: Colin Leroy <[EMAIL PROTECTED]>
--- a/drivers/usb/net/zd1201.c  2005-05-01 11:25:54.000000000 +0200
+++ b/drivers/usb/net/zd1201.c  2005-05-01 11:26:27.000000000 +0200
@@ -1903,6 +1903,9 @@
 {
        struct zd1201 *zd = (struct zd1201 *)usb_get_intfdata(interface);
 
+       if (!zd || !zd->dev)
+               return -ENODEV;
+
        netif_device_attach(zd->dev);
 
        if (zd->was_enabled)


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to