[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/8] ivshmem: remove redundant assignment, fix crash
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PATCH 2/8] ivshmem: remove redundant assignment, fix crash with msi=off |
Date: |
Mon, 21 Dec 2015 12:30:38 +0100 |
From: Marc-André Lureau <address@hidden>
Fix crash when msi=false introduced in 660c97ee (msi_vectors is NULL in
this case)
Signed-off-by: Marc-André Lureau <address@hidden>
---
hw/misc/ivshmem.c | 3 ---
1 file changed, 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) {
--
2.5.0
- [Qemu-devel] [PATCH 0/8] ivshmem: test msi=off, remove CharDriver, marcandre . lureau, 2015/12/21
- [Qemu-devel] [PATCH 1/8] ivshmem: no need for opaque argument, marcandre . lureau, 2015/12/21
- [Qemu-devel] [PATCH 2/8] ivshmem: remove redundant assignment, fix crash with msi=off,
marcandre . lureau <=
- [Qemu-devel] [PATCH 4/8] libqos: remove some leaks, marcandre . lureau, 2015/12/21
- [Qemu-devel] [PATCH 5/8] ivshmem-test: test both msi & irq cases, marcandre . lureau, 2015/12/21
- [Qemu-devel] [PATCH 3/8] ivshmem-test: leak fixes, marcandre . lureau, 2015/12/21
- [Qemu-devel] [PATCH 6/8] ivshmem: generalize ivshmem_setup_interrupts, marcandre . lureau, 2015/12/21
- [Qemu-devel] [PATCH 8/8] char: remove qemu_chr_open_eventfd, marcandre . lureau, 2015/12/21
- [Qemu-devel] [PATCH 7/8] ivshmem: use a single eventfd callback, get rid of CharDriver, marcandre . lureau, 2015/12/21