From: Harvey Harrison Date: Wed, 21 May 2008 20:54:20 +0000 (-0500) Subject: [SCSI] scsi: use get_unaligned_* helpers X-Git-Tag: v2.6.27-rc1~1059^2~46 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8f333991ba8479fe8a9d72aea978db415e3c2f2a;p=linux-2.6-omap-h63xx.git [SCSI] scsi: use get_unaligned_* helpers Signed-off-by: Harvey Harrison Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 9c267b44044..8b4e412a097 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c @@ -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;