Netpoll shouldn't send packets to devices that have detached themselves.
This can happen during shutdown or suspend.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>


--- a/net/core/netpoll.c        2006-10-18 13:41:49.000000000 -0700
+++ b/net/core/netpoll.c        2006-10-18 13:43:44.000000000 -0700
@@ -273,7 +273,7 @@
        int status;
        struct netpoll_info *npinfo;
 
-       if (!np || !np->dev || !netif_running(np->dev)) {
+       if (!np || !np->dev || !netif_device_present(np->dev) || 
!netif_running(np->dev)) {
                __kfree_skb(skb);
                return;
        }
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to