CHROMIUM: virtwl: fix incorrect list_for_each_entry_safe usage
TEST=None
BUG=None
Change-Id: Id5e939310dc4a3b3b4bccfc30e606e961c08f0e3
Signed-off-by: Zach Reizner <zachr@google.com>
Reviewed-on: https://chromium-review.googlesource.com/742145
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/780814
Commit-Ready: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
diff --git a/drivers/virtio/virtio_wl.c b/drivers/virtio/virtio_wl.c
index 3c551a8..0ed18556 100644
--- a/drivers/virtio/virtio_wl.c
+++ b/drivers/virtio/virtio_wl.c
@@ -408,7 +408,7 @@
virtwl_vfd_lock_unlink(vfd);
mutex_lock(vq_lock);
- list_for_each_entry_safe(next, qentry, &vfd->in_queue, list) {
+ list_for_each_entry_safe(qentry, next, &vfd->in_queue, list) {
vq_return_inbuf_locked(vq, qentry->hdr);
list_del(&qentry->list);
kfree(qentry);