diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-12-18 15:13:08 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-02-02 13:28:58 +0100 |
commit | 47213eb1104709bf238c8d16db20aa47d37b1c59 (patch) | |
tree | 763da902517eff4edfee44ff0120041c87a8588a /hw/misc | |
parent | 2c64846972897fc3aec4072f849fae2b00322f8b (diff) | |
download | qemu-47213eb1104709bf238c8d16db20aa47d37b1c59.zip |
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/misc')
-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 358df2407a..50297892fd 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) { |