ChangeSet 1.2199.8.25, 2005/03/22 18:33:48-08:00, [EMAIL PROTECTED]

        [NETPOLL]: Avoid kfree_skb() on packets with destructor
        
        Packets that have destructors should not be zapped here as that might
        produce additional printk warnings via netconsole.
        
        Signed-off-by: Matt Mackall <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 netpoll.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


diff -Nru a/net/core/netpoll.c b/net/core/netpoll.c
--- a/net/core/netpoll.c        2005-03-26 17:15:33 -08:00
+++ b/net/core/netpoll.c        2005-03-26 17:15:33 -08:00
@@ -192,7 +192,10 @@
                while (clist != NULL) {
                        struct sk_buff *skb = clist;
                        clist = clist->next;
-                       __kfree_skb(skb);
+                       if(skb->destructor)
+                               dev_kfree_skb_any(skb); /* put this one back */
+                       else
+                               __kfree_skb(skb);
                }
        }
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to