diff options
| author | Sreekanth Reddy <[email protected]> | 2014-09-12 10:05:21 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2014-09-16 16:14:15 +0000 |
| commit | daeaa9df92bd742f4e6d4d6039d689277a8e31bd (patch) | |
| tree | 712a7a2df69c28e69b9e0308e54c3836deb8fbe3 /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
| parent | mpt2sas: Bump mpt2sas driver version to 17.100.00.00 (diff) | |
| download | kernel-daeaa9df92bd742f4e6d4d6039d689277a8e31bd.tar.gz kernel-daeaa9df92bd742f4e6d4d6039d689277a8e31bd.zip | |
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 <[email protected]>
Tested-by: Sreekanth Reddy <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions
