]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: can: esd_usb2: Do not do dma on the stack
authorOlivier Sobrie <olivier@sobrie.be>
Fri, 18 Jan 2013 08:14:04 +0000 (09:14 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 3 Jun 2013 12:05:31 +0000 (14:05 +0200)
commitfae37f81fdf3680c5d70abdc57e7b83f4b6c266a
treea88707db07641e19471fdae0e11a4e7a647e5332
parenta90f13b24fb40d02d11496cce6a10ae8d4b319b2
net: can: esd_usb2: Do not do dma on the stack

smatch reports the following warnings:
drivers/net/can/usb/esd_usb2.c:640 esd_usb2_start() error: doing dma on the stack (&msg)
drivers/net/can/usb/esd_usb2.c:846 esd_usb2_close() error: doing dma on the stack (&msg)
drivers/net/can/usb/esd_usb2.c:855 esd_usb2_close() error: doing dma on the stack (&msg)
drivers/net/can/usb/esd_usb2.c:923 esd_usb2_set_bittiming() error: doing dma on the stack (&msg)
drivers/net/can/usb/esd_usb2.c:1047 esd_usb2_probe() error: doing dma on the stack (&msg)
drivers/net/can/usb/esd_usb2.c:1053 esd_usb2_probe() error: doing dma on the stack (&msg)

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

Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Cc: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/esd_usb2.c