Revision 72755a70 hw/msix.c

b/hw/msix.c
286 286
{
287 287
    unsigned n = dev->msix_entries_nr;
288 288

  
289
    if (!dev->cap_present & QEMU_PCI_CAP_MSIX)
289
    if (!(dev->cap_present & QEMU_PCI_CAP_MSIX)) {
290 290
        return;
291
    }
291 292

  
292 293
    qemu_put_buffer(f, dev->msix_table_page, n * MSIX_ENTRY_SIZE);
293 294
    qemu_put_buffer(f, dev->msix_table_page + MSIX_PAGE_PENDING, (n + 7) / 8);

Also available in: Unified diff