Skip to content
Commit 62de7d99 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] usbtv: don't do DMA on stack



As reported by smatch:
	drivers/media/usb/usbtv/usbtv-video.c:716 usbtv_s_ctrl() error: doing dma on the stack (data)
	drivers/media/usb/usbtv/usbtv-video.c:758 usbtv_s_ctrl() error: doing dma on the stack (data)

We should not do it, as it won't work on Kernels 4.9 and upper.
So, alloc a buffer for it.

Fixes: c53a846c ("[media] usbtv: add video controls")
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent c53a846c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment