projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23d049
)
megasas: Fix typo in megasas_dcmd_ld_get_list()
author
Hannes Reinecke
<hare@suse.de>
Wed, 29 Oct 2014 12:00:09 +0000
(13:00 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 31 Oct 2014 10:29:00 +0000
(11:29 +0100)
The check for a valid command buffer size was inverted.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/megasas.c
patch
|
blob
|
history
diff --git
a/hw/scsi/megasas.c
b/hw/scsi/megasas.c
index 7401b6b778c36884718f89d38361799dfcfe2014..acc9d3077299fdf99bab991ea7fb93041d4b8499 100644
(file)
--- 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;