Message ID | 4AD66E9B.2020803@gmail.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Eric Dumazet <eric.dumazet@gmail.com> Date: Thu, 15 Oct 2009 02:36:43 +0200 > Massimo Cetra a écrit : >> Eric, >> thanks for the patch. >> The problem didn't arise again and i haven't seen any warning like that >> on both servers where that problem was happening more frequently. >> >> I would say that it's fixed and if it's not, i'll let you know as soon >> as it happens again. >> > > Thanks Massimo, I think patch is reasonably safe and should be taken as is : > > > [PATCH] virtio_net: use dev_kfree_skb_any() in free_old_xmit_skbs() Applied, thanks Eric. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 8d00976..54bf091 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -454,7 +454,7 @@ static unsigned int free_old_xmit_skbs(struct virtnet_info *vi) vi->dev->stats.tx_bytes += skb->len; vi->dev->stats.tx_packets++; tot_sgs += skb_vnet_hdr(skb)->num_sg; - kfree_skb(skb); + dev_kfree_skb_any(skb); } return tot_sgs; }