qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 03/11] megasas: Fix


From: Cao jin
Subject: Re: [Qemu-devel] [PATCH v5 03/11] megasas: Fix
Date: Fri, 6 May 2016 13:43:28 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

sorry, forget to cc some maintainers

On 05/06/2016 12:20 PM, Cao jin wrote:
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) &&


--
Yours Sincerely,

Cao jin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]