[SCSI] mpt2sas: mpt2sas_base_get_sense_buffer_dma should be returning little endian
cpu_to_le64 when calculating the physical dma address. This will properly handle endianess on big endian systems. The return value of this function was changed from dma_addr_t to __le64. Remove the typecasting of u32 when setting the SenseBufferLowAddress, since its already in __le32 format. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: Eric Moore <Eric.moore@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
e4e7c7ed34
commit
ec9472c74c
@ -740,7 +740,7 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc,
|
||||
Mpi2SCSIIORequest_t *scsiio_request =
|
||||
(Mpi2SCSIIORequest_t *)mpi_request;
|
||||
scsiio_request->SenseBufferLowAddress =
|
||||
(u32)mpt2sas_base_get_sense_buffer_dma(ioc, smid);
|
||||
mpt2sas_base_get_sense_buffer_dma(ioc, smid);
|
||||
priv_sense = mpt2sas_base_get_sense_buffer(ioc, smid);
|
||||
memset(priv_sense, 0, SCSI_SENSE_BUFFERSIZE);
|
||||
mpt2sas_base_put_smid_scsi_io(ioc, smid,
|
||||
|
Reference in New Issue
Block a user