mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
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 <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
This commit is contained in:
1 parent
2c64846972
commit
47213eb110
1 file changed
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user