net: can: peak_usb: Do not do dma on the stack
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 16 May 2013 09:36:40 +0000 (11:36 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 3 Jun 2013 12:05:32 +0000 (14:05 +0200)
commitf14e22435a27ef183bbfa78f77ad86644c0b354c
tree60fafa1a40ba6c0a3946cad92f55c43e1c946865
parentfae37f81fdf3680c5d70abdc57e7b83f4b6c266a
net: can: peak_usb: Do not do dma on the stack

smatch reports the following warnings:
drivers/net/can/usb/peak_usb/pcan_usb_pro.c:514 pcan_usb_pro_drv_loaded() error: doing dma on the stack (buffer)
drivers/net/can/usb/peak_usb/pcan_usb_pro.c:878 pcan_usb_pro_init() error: doing dma on the stack (&fi)
drivers/net/can/usb/peak_usb/pcan_usb_pro.c:889 pcan_usb_pro_init() error: doing dma on the stack (&bi)

See "Documentation/DMA-API-HOWTO.txt" section "What memory is DMA'able?"

Cc: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_pro.c
drivers/net/can/usb/peak_usb/pcan_usb_pro.h