Thread (2 messages) 2 messages, 2 authors, 2021-05-15

Re: [PATCH v2 10/13] mwifiex: re-fix for unaligned accesses

From: Kalle Valo <hidden>
Date: 2021-05-15 06:23:23
Also in: linux-arch, lkml, netdev

Possibly related (same subject, not in this thread)

Arnd Bergmann [off-list ref] writes:
From: Arnd Bergmann <arnd@arndb.de>

A patch from 2017 changed some accesses to DMA memory to use
get_unaligned_le32() and similar interfaces, to avoid problems
with doing unaligned accesson uncached memory.

However, the change in the mwifiex_pcie_alloc_sleep_cookie_buf()
function ended up changing the size of the access instead,
as it operates on a pointer to u8.

Change this function back to actually access the entire 32 bits.
Note that the pointer is aligned by definition because it came
from dma_alloc_coherent().

Fixes: 92c70a958b0b ("mwifiex: fix for unaligned reads")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Via which tree should this go? I assume it will go via some other tree
so:

Acked-by: Kalle Valo <redacted>

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help