Skip to content
Commit 0b185544 authored by Yunjian Wang's avatar Yunjian Wang Committed by Michael Roth
Browse files

virtio-net: fix wild pointer when remove virtio-net queues



The tx_bh or tx_timer will free in virtio_net_del_queue() function, when
removing virtio-net queues if the guest doesn't support multiqueue. But
it might be still referenced by virtio_net_set_status(), which needs to
be set NULL. And also the tx_waiting needs to be set zero to prevent
virtio_net_set_status() accessing tx_bh or tx_timer.

Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarYunjian Wang <wangyunjian@huawei.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
(cherry picked from commit f989c30c)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent f3676379
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment