diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-12-18 15:13:08 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:30:22 -0600 |
commit | 5c0683e356da068a4a34ec6c5af98c2071e6c4d4 (patch) | |
tree | d08df850c0b04ca84405b0c37b93bba41bdea277 /hw | |
parent | 94a264a846bc0f936be76e1d74b3977df7d98619 (diff) | |
download | hqemu-5c0683e356da068a4a34ec6c5af98c2071e6c4d4.zip hqemu-5c0683e356da068a4a34ec6c5af98c2071e6c4d4.tar.gz |
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>
Diffstat (limited to 'hw')
-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 358df24..5029789 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) { |