[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 03/11] megasas: Fix
From: |
Cao jin |
Subject: |
[Qemu-devel] [PATCH v5 03/11] megasas: Fix |
Date: |
Fri, 6 May 2016 12:20:34 +0800 |
msi_init returns non-zero value on both failure and success.
cc: Hannes Reinecke <address@hidden>
cc: Paolo Bonzini <address@hidden>
Signed-off-by: Cao jin <address@hidden>
---
hw/scsi/megasas.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c
index a63a581..56fb645 100644
--- a/hw/scsi/megasas.c
+++ b/hw/scsi/megasas.c
@@ -2348,7 +2348,7 @@ static void megasas_scsi_realize(PCIDevice *dev, Error
**errp)
"megasas-queue", 0x40000);
if (megasas_use_msi(s) &&
- msi_init(dev, 0x50, 1, true, false)) {
+ msi_init(dev, 0x50, 1, true, false) < 0) {
s->flags &= ~MEGASAS_MASK_USE_MSI;
}
if (megasas_use_msix(s) &&
--
2.1.0
- [Qemu-devel] [PATCH v5 06/11] intel-hda: change msi property type, (continued)
[Qemu-devel] [PATCH v5 03/11] megasas: Fix,
Cao jin <=
[Qemu-devel] [PATCH v5 04/11] mptsas: change .realize function name, Cao jin, 2016/05/06