aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-05-26 03:42:42 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-05-30 22:07:20 -0400
commit7eb2e25112bf920bb0a4d1cca445f3d96874c25f (patch)
treecb26b7adfe4c8af39361716966049ed8dd4732d0 /drivers/block
parentd399cf8c04c595d738d82d02ae2755b902a51571 (diff)
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 <rusty@rustcorp.com.au> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions