Re: [PATCH] HID: lenovo: Don't use stack variables for DMA buffers

2016-03-29 Thread Jiri Kosina
On Tue, 29 Mar 2016, Benjamin Tissoires wrote: > > The lenovo_send_cmd_cptkbd function uses a stack variable to submit > > commands via hid_hw_raw_request. Eventually this gets to the > > usb_hcd_map_urb_for_dma function, which causes a warning to be thrown > > if the CONFIG_DMA_API_DEBUG option

Re: [PATCH] HID: lenovo: Don't use stack variables for DMA buffers

2016-03-28 Thread Benjamin Tissoires
On Mar 28 2016 or thereabouts, Josh Boyer wrote: > The lenovo_send_cmd_cptkbd function uses a stack variable to submit > commands via hid_hw_raw_request. Eventually this gets to the > usb_hcd_map_urb_for_dma function, which causes a warning to be thrown > if the CONFIG_DMA_API_DEBUG option is enab

[PATCH] HID: lenovo: Don't use stack variables for DMA buffers

2016-03-28 Thread Josh Boyer
The lenovo_send_cmd_cptkbd function uses a stack variable to submit commands via hid_hw_raw_request. Eventually this gets to the usb_hcd_map_urb_for_dma function, which causes a warning to be thrown if the CONFIG_DMA_API_DEBUG option is enabled. Fix this by allocating a temporary buffer instead.