Skip to content

Commit

Permalink
[SCSI] scsi: use get_unaligned_* helpers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harvey Harrison authored and James Bottomley committed Jul 12, 2008
1 parent 3a12b19 commit 8f33399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ static void iscsi_scsi_cmd_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
goto out;
}

senselen = be16_to_cpu(get_unaligned((__be16 *) data));
senselen = get_unaligned_be16(data);
if (datalen < senselen)
goto invalid_datalen;

Expand Down

0 comments on commit 8f33399

Please sign in to comment.