[PATCH v2] kvaser_usb: fix dma on the stack errors

2012-11-23 Thread Olivier Sobrie
The dma buffer given to usb_bulk_msg() must be allocated and not on the stack. See Documentation/DMA-API-HOWTO.txt section What memory is DMA'able? Signed-off-by: Olivier Sobrie oliv...@sobrie.be --- drivers/net/can/usb/kvaser_usb.c | 111 -- 1 file changed,

Re: [PATCH v2] kvaser_usb: fix dma on the stack errors

2012-11-23 Thread Marc Kleine-Budde
On 11/23/2012 02:54 PM, Olivier Sobrie wrote: The dma buffer given to usb_bulk_msg() must be allocated and not on the stack. See Documentation/DMA-API-HOWTO.txt section What memory is DMA'able? Signed-off-by: Olivier Sobrie oliv...@sobrie.be Thanks, I've squashed it into the original patch

Re: [PATCH v2] kvaser_usb: fix dma on the stack errors

2012-11-23 Thread Olivier Sobrie
On Fri, Nov 23, 2012 at 03:08:08PM +0100, Marc Kleine-Budde wrote: On 11/23/2012 02:54 PM, Olivier Sobrie wrote: The dma buffer given to usb_bulk_msg() must be allocated and not on the stack. See Documentation/DMA-API-HOWTO.txt section What memory is DMA'able? Signed-off-by: Olivier