[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 @@ static void iscsi_scsi_cmd_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
senselen = be16_to_cpu(get_unaligned((__be16 *) data));
|
senselen = get_unaligned_be16(data);
|
||||||
if (datalen < senselen)
|
if (datalen < senselen)
|
||||||
goto invalid_datalen;
|
goto invalid_datalen;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user