]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/virtio/virtio-pci.c
hw/virtio: handle un-configured shutdown in virtio-pci
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 28 Jul 2022 13:55:02 +0000 (14:55 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Aug 2022 11:07:37 +0000 (07:07 -0400)
commit5a9d5f09b1f61bc7072c2389ba5b11350ae76b0d
treeaae04f6b062dc7b66d089257ce2aaf8461cea7b0
parentf20400ed0de62ba7682b864e270804ceb3df784a
hw/virtio: handle un-configured shutdown in virtio-pci

The assert() protecting against leakage is a little aggressive and
causes needless crashes if a device is shutdown without having been
configured. In this case no descriptors are lost because none have
been assigned.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220728135503.1060062-4-alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c