qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PULL 08/35] megasas: Fix typo in megasas_dcmd_ld_get_list(


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 08/35] megasas: Fix typo in megasas_dcmd_ld_get_list()
Date: Fri, 31 Oct 2014 18:25:46 +0100

From: Hannes Reinecke <address@hidden>

The check for a valid command buffer size was inverted.

Signed-off-by: Hannes Reinecke <address@hidden>
Signed-off-by: Paolo Bonzini <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 7401b6b..acc9d30 100644
--- a/hw/scsi/megasas.c
+++ b/hw/scsi/megasas.c
@@ -1118,7 +1118,7 @@ static int megasas_dcmd_ld_get_list(MegasasState *s, 
MegasasCmd *cmd)
     BusChild *kid;
 
     memset(&info, 0, dcmd_size);
-    if (cmd->iov_size < dcmd_size) {
+    if (cmd->iov_size > dcmd_size) {
         trace_megasas_dcmd_invalid_xfer_len(cmd->index, cmd->iov_size,
                                             dcmd_size);
         return MFI_STAT_INVALID_PARAMETER;
-- 
1.8.3.1





reply via email to

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