summaryrefslogtreecommitdiffstats
path: root/drivers/tty/rocket.h
diff options
context:
space:
mode:
authorJussi Kivilinna2013-02-18 09:29:30 +0100
committerJohn W. Linville2013-02-18 21:30:40 +0100
commitbc6b89237acb3dee6af6e64e51a18255fef89cc2 (patch)
tree7a9d124856f3e1792c6e2272ad6c1464e3ffc705 /drivers/tty/rocket.h
parentmwifiex: add 802.11AC support (diff)
downloadkernel-qcow2-linux-bc6b89237acb3dee6af6e64e51a18255fef89cc2.tar.gz
kernel-qcow2-linux-bc6b89237acb3dee6af6e64e51a18255fef89cc2.tar.xz
kernel-qcow2-linux-bc6b89237acb3dee6af6e64e51a18255fef89cc2.zip
rtlwifi: usb: allocate URB control message setup_packet and data buffer separately
rtlwifi allocates both setup_packet and data buffer of control message urb, using shared kmalloc in _usbctrl_vendorreq_async_write. Structure used for allocating is: struct { u8 data[254]; struct usb_ctrlrequest dr; }; Because 'struct usb_ctrlrequest' is __packed, setup packet is unaligned and DMA mapping of both 'data' and 'dr' confuses ARM/sunxi, leading to memory corruptions and freezes. Patch changes setup packet to be allocated separately. [v2]: - Use WARN_ON_ONCE instead of WARN_ON Cc: <stable@vger.kernel.org> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/tty/rocket.h')
0 files changed, 0 insertions, 0 deletions