diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-29 01:08:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-29 10:41:33 -0400 |
commit | 6a7d26d58a0f61cffddc8839067dfad10413b852 (patch) | |
tree | 7b0263cfd27c0b436fddb5f0f5c7b296ba798dab /drivers | |
parent | 80da1adbbf8805bc1a5d287ab171463710b7d92e (diff) |
arcmsr: endianness bug
initializing a field in data shared with the card with
cpu_to_le32(something) | 0x100000 is broken - the field is, indeed,
little-endian and we need cpu_to_le32() on both parts.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/arcmsr/arcmsr_hba.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index aaee028dd901..4c1b3b4ae35b 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c | |||
@@ -916,7 +916,7 @@ static void arcmsr_build_ccb(struct AdapterControlBlock *acb, | |||
916 | 916 | ||
917 | pdma_sg->addresshigh = address_hi; | 917 | pdma_sg->addresshigh = address_hi; |
918 | pdma_sg->address = address_lo; | 918 | pdma_sg->address = address_lo; |
919 | pdma_sg->length = length|IS_SG64_ADDR; | 919 | pdma_sg->length = length|cpu_to_le32(IS_SG64_ADDR); |
920 | psge += sizeof (struct SG64ENTRY); | 920 | psge += sizeof (struct SG64ENTRY); |
921 | arccdbsize += sizeof (struct SG64ENTRY); | 921 | arccdbsize += sizeof (struct SG64ENTRY); |
922 | } | 922 | } |