[PATCH] 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 --- Here is the incremental patch. Thank you Greg ! Olivier drivers/net/can/usb/kvaser_usb.c |

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

2012-11-23 Thread Olivier Sobrie
On Fri, Nov 23, 2012 at 02:30:28PM +0100, 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 --- Here is the incremental

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

2012-11-23 Thread Marc Kleine-Budde
On 11/23/2012 02:40 PM, Olivier Sobrie wrote: On Fri, Nov 23, 2012 at 02:30:28PM +0100, 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