linux-stable/drivers/scsi/mpt2sas
Sreekanth Reddy daeaa9df92 mpt2sas: Avoid type casting for direct I/O commands
A type casting error caused the max volume LBA to be truncated from 64
to 32 bits. The virtual LBA would also get truncated to 32 bits in the
case of a 16-byte READ/WRITE command.

Rewrite entire function to get rid of code duplication and type casts.
Use get/put_unaligned wrappers to extract and replace the LBA field in
the MPI request CDB.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Tested-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-09-16 09:14:15 -07:00
..
mpi mpt2sas: MPI2 Rev Y (2.00.17) and Rev Z (2.00.18) specifications 2014-09-16 09:14:13 -07:00
Kconfig mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00
Makefile
mpt2sas_base.c mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00
mpt2sas_base.h mpt2sas: Bump mpt2sas driver version to 17.100.00.00 2014-09-16 09:14:15 -07:00
mpt2sas_config.c mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00
mpt2sas_ctl.c mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00
mpt2sas_ctl.h mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00
mpt2sas_debug.h mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00
mpt2sas_scsih.c mpt2sas: Avoid type casting for direct I/O commands 2014-09-16 09:14:15 -07:00
mpt2sas_transport.c mpt2sas: Copyright in driver sources is updated for year the 2014 2014-09-16 09:14:14 -07:00