diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-05-08 00:07:55 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2021-05-17 13:30:29 +0200 |
commit | 8f4e3d48bb50765ab27ae5bebed2595b20de80a1 (patch) | |
tree | c78873fe604cb889bc1e75f0e5fcd52a8b21960f /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | dd979d7a08adb473744f2e9d4bbaddb039dc39dc (diff) |
mwifiex: re-fix for unaligned accesses
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")
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions