megasas: Fix typo in megasas_dcmd_ld_get_list()
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>
This commit is contained in:
parent
e23d04984a
commit
e74a43154d
|
@ -1118,7 +1118,7 @@ static int megasas_dcmd_ld_get_list(MegasasState *s, MegasasCmd *cmd)
|
||||||
BusChild *kid;
|
BusChild *kid;
|
||||||
|
|
||||||
memset(&info, 0, dcmd_size);
|
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,
|
trace_megasas_dcmd_invalid_xfer_len(cmd->index, cmd->iov_size,
|
||||||
dcmd_size);
|
dcmd_size);
|
||||||
return MFI_STAT_INVALID_PARAMETER;
|
return MFI_STAT_INVALID_PARAMETER;
|
||||||
|
|
Loading…
Reference in a new issue