public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 6/9] scsi: use get_unaligned_* helpers
@ 2008-05-14 23:23 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2008-05-14 23:23 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, akpm, harvey.harrison

From: Harvey Harrison <harvey.harrison@gmail.com>

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/libiscsi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/libiscsi.c~scsi-use-get_unaligned_-helpers drivers/scsi/libiscsi.c
--- a/drivers/scsi/libiscsi.c~scsi-use-get_unaligned_-helpers
+++ a/drivers/scsi/libiscsi.c
@@ -508,7 +508,7 @@ invalid_datalen:
 			goto out;
 		}
 
-		senselen = be16_to_cpu(get_unaligned((__be16 *) data));
+		senselen = get_unaligned_be16(data);
 		if (datalen < senselen)
 			goto invalid_datalen;
 
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-14 23:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 23:23 [patch 6/9] scsi: use get_unaligned_* helpers akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox