Commit [a86cd7] Maximize Restore History

rtlwifi: fix incorrect use of usb_alloc_coherent with usb_control_msg

commit 4c3de5920c486b8eefa6187ee6a181864c161100 upstream.

Incorrect use of usb_alloc_coherent memory as input buffer to usb_control_msg
can cause problems in arch DMA code, for example kernel BUG at
'arch/arm/include/asm/dma-mapping.h:321' on ARM (linux-3.4).

Change _usb_writeN_sync use kmalloc'd buffer instead.

Signed-off-by: Jussi Kivilinna <>
Acked-by: Larry Finger <>
Signed-off-by: John W. Linville <>
Signed-off-by: Greg Kroah-Hartman <>

Jussi Kivilinna Jussi Kivilinna 2012-12-20

Greg Kroah-Hartman Greg Kroah-Hartman 2013-01-11

changed drivers/net/wireless/rtlwifi/usb.c
drivers/net/wireless/rtlwifi/usb.c Diff Switch to side-by-side view