scsi: megaraid_sas: call megasas_dump_frame with correct IO frame size
authorShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Wed, 23 Aug 2017 11:47:07 +0000 (04:47 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:16 +0000 (22:29 -0400)
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c

index a949a2111b08611ece165562e3f3fe43a8f60ec8..5183184918998371d704ece8c4c7e873a013e4d7 100644 (file)
@@ -2795,7 +2795,7 @@ static int megasas_reset_bus_host(struct scsi_cmnd *scmd)
                cmd = (struct megasas_cmd_fusion *)scmd->SCp.ptr;
                if (cmd)
                        megasas_dump_frame(cmd->io_request,
-                               sizeof(struct MPI2_RAID_SCSI_IO_REQUEST));
+                               MEGA_MPI2_RAID_DEFAULT_IO_FRAME_SIZE);
                ret = megasas_reset_fusion(scmd->device->host,
                                SCSIIO_TIMEOUT_OCR);
        } else