Commit 8f333991 authored by Harvey Harrison's avatar Harvey Harrison Committed by James Bottomley

[SCSI] scsi: use get_unaligned_* helpers

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 3a12b199
...@@ -591,7 +591,7 @@ static void iscsi_scsi_cmd_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment