projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c64846
)
ivshmem: remove redundant assignment, fix crash with msi=off
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Fri, 18 Dec 2015 14:13:08 +0000
(15:13 +0100)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Tue, 2 Feb 2016 12:28:58 +0000
(13:28 +0100)
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>
hw/misc/ivshmem.c
patch
|
blob
|
history
diff --git
a/hw/misc/ivshmem.c
b/hw/misc/ivshmem.c
index 358df2407a9c57d9b1327083db8ad55234cc35a5..50297892fd40e05b62cca39bda4bf0cd6836d61c 100644
(file)
--- 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) {