]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ivshmem: remove redundant assignment, fix crash with msi=off
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 18 Dec 2015 14:13:08 +0000 (15:13 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 15 Mar 2016 17:35:51 +0000 (12:35 -0500)
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>
hw/misc/ivshmem.c

index 7d14222781a4e6e2e7f1e614936d7ffe69a84e2a..dcfc8cc5fc94879bec8657714b0fe42c6a24095b 100644 (file)
@@ -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) {