From: Rusty Russell Date: Mon, 26 May 2008 07:42:42 +0000 (+1000) Subject: virtio: fix virtio_net xmit of freed skb bug X-Git-Tag: v2.6.26-rc5~1^2~16^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eb2e25112bf920bb0a4d1cca445f3d96874c25f;p=pandora-kernel.git virtio: fix virtio_net xmit of freed skb bug If we fail to transmit a packet, we assume the queue is full and put the skb into last_xmit_skb. However, if more space frees up before we xmit it, we loop, and the result can be transmitting the same skb twice. Fix is simple: set skb to NULL if we've used it in some way, and check before sending. Signed-off-by: Rusty Russell Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed