[SCSI] scsi: use get_unaligned_* helpers

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
Harvey Harrison 2008-05-21 15:54:20 -05:00 committed by James Bottomley
parent 3a12b199fc
commit 8f333991ba
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ invalid_datalen:
goto out;
}
senselen = be16_to_cpu(get_unaligned((__be16 *) data));
senselen = get_unaligned_be16(data);
if (datalen < senselen)
goto invalid_datalen;