mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
80da1adbbf
commit
6a7d26d58a
1 changed files with 1 additions and 1 deletions
|
@ -916,7 +916,7 @@ static void arcmsr_build_ccb(struct AdapterControlBlock *acb,
|
|||
|
||||
pdma_sg->addresshigh = address_hi;
|
||||
pdma_sg->address = address_lo;
|
||||
pdma_sg->length = length|IS_SG64_ADDR;
|
||||
pdma_sg->length = length|cpu_to_le32(IS_SG64_ADDR);
|
||||
psge += sizeof (struct SG64ENTRY);
|
||||
arccdbsize += sizeof (struct SG64ENTRY);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue