projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01b3d7
)
VIRTIO: Use __skb_queue_purge()
author
Wang Chen
<wangchen@cn.fujitsu.com>
Thu, 22 May 2008 10:07:43 +0000
(18:07 +0800)
committer
Jeff Garzik
<jgarzik@redhat.com>
Thu, 22 May 2008 18:01:02 +0000
(14:01 -0400)
Use standard routine for queue purging.
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/virtio_net.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index f926b5ab3d09291f2146ebd3928bc385503fb04e..fe7cdf2a2a236bc7257e1e5e3e2a5d2ef1086ad3 100644
(file)
--- a/
drivers/net/virtio_net.c
+++ b/
drivers/net/virtio_net.c
@@
-470,8
+470,7
@@
static void virtnet_remove(struct virtio_device *vdev)
kfree_skb(skb);
vi->num--;
}
- while ((skb = __skb_dequeue(&vi->send)) != NULL)
- kfree_skb(skb);
+ __skb_queue_purge(&vi->send);
BUG_ON(vi->num != 0);