The alignment check was wrong (e.g. & 4 instead of & 3), and the logic
was also inefficient if the length was not a multiple of 4, since it
would needlessly fall back to copying the entire buffer bytewise.
We already have a perfectly good memcpy_toio function, so just call that
instead of rolling our own copy logic here. brcmf_pcie_init_ringbuffers
was already using it anyway.
Fixes:
|
||
|---|---|---|
| .. | ||
| b43 | ||
| b43legacy | ||
| brcm80211 | ||
| Kconfig | ||
| Makefile | ||