[media] touptek: don't DMA at the stack
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 6 Mar 2016 13:12:32 +0000 (10:12 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 10 Mar 2016 16:37:45 +0000 (13:37 -0300)
commitad7220479244e92d7eba2ecc4b3f3e08312fc68f
treedd25992644f04efdb8ef5ed2c6b80bc15a0ff8d8
parenteef8fc374c131647ea9eea3301f06f4eee7f51ae
[media] touptek: don't DMA at the stack

As warned by smatch:
drivers/media/usb/gspca/touptek.c:220 reg_w() error: doing dma on the stack (buff)
drivers/media/usb/gspca/touptek.c:458 configure() error: doing dma on the stack (buff)

This can fail, as the stack may not be in a memory that would
allod DMA. So, use the usb_buf instead.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/gspca/touptek.c