diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-12-18 15:13:08 +0100 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2016-03-15 12:35:51 -0500 |
commit | 702a8d165c9a4a54bf9b1d6af816aa64c8cf0d7a (patch) | |
tree | 9c7e6637b57f860beddde13214ed8cacb4f808d9 | |
parent | 3e96d5dcf2f7a8c35b0e91b2689482bf0436e49d (diff) | |
download | qemu-702a8d165c9a4a54bf9b1d6af816aa64c8cf0d7a.zip qemu-702a8d165c9a4a54bf9b1d6af816aa64c8cf0d7a.tar.gz qemu-702a8d165c9a4a54bf9b1d6af816aa64c8cf0d7a.tar.bz2 |
ivshmem: remove redundant assignment, fix crash with msi=off
Fix crash when msi=false introduced in 660c97ee (msi_vectors is NULL in
this case)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
(cherry picked from commit 47213eb1104709bf238c8d16db20aa47d37b1c59)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r-- | hw/misc/ivshmem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 7d14222..dcfc8cc 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -355,12 +355,9 @@ static CharDriverState* create_eventfd_chr_device(IVShmemState *s, int vector) { /* create a event character device based on the passed eventfd */ - PCIDevice *pdev = PCI_DEVICE(s); int eventfd = event_notifier_get_fd(n); CharDriverState *chr; - s->msi_vectors[vector].pdev = pdev; - chr = qemu_chr_open_eventfd(eventfd); if (chr == NULL) { |