[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:
parent
3a12b199fc
commit
8f333991ba
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue