* [PATCH 4/8] scsi: use get_unaligned_* helpers
@ 2008-05-02 3:52 Harvey Harrison
2008-05-05 18:46 ` Mike Christie
0 siblings, 1 reply; 2+ messages in thread
From: Harvey Harrison @ 2008-05-02 3:52 UTC (permalink / raw)
To: Andrew Morton; +Cc: James Bottomley, LKML, linux-scsi
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
drivers/scsi/libiscsi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 010c1b9..7646e86 100644
--- a/drivers/scsi/libiscsi.c
+++ b/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;
--
1.5.5.1.350.gbbbf
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 4/8] scsi: use get_unaligned_* helpers
2008-05-02 3:52 [PATCH 4/8] scsi: use get_unaligned_* helpers Harvey Harrison
@ 2008-05-05 18:46 ` Mike Christie
0 siblings, 0 replies; 2+ messages in thread
From: Mike Christie @ 2008-05-05 18:46 UTC (permalink / raw)
To: Harvey Harrison; +Cc: Andrew Morton, James Bottomley, LKML, linux-scsi
Harvey Harrison wrote:
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> ---
> drivers/scsi/libiscsi.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
> index 010c1b9..7646e86 100644
> --- a/drivers/scsi/libiscsi.c
> +++ b/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;
>
This looks ok. Thanks.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
If It does not get picked up by Andrew then I will send it with the
other iscsi updates when the next feature window opens.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-05 18:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 3:52 [PATCH 4/8] scsi: use get_unaligned_* helpers Harvey Harrison
2008-05-05 18:46 ` Mike Christie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).