diff options
| author | Mauro Carvalho Chehab <[email protected]> | 2021-06-17 14:33:29 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-07-12 09:16:31 +0200 |
| commit | 1a10d7fdb6d0e235e9d230916244cc2769d3f170 (patch) | |
| tree | f924d6e49b2c692b5406d48af0a8d7f7b793bfa2 /tools/perf/scripts/python/flamegraph.py | |
| parent | 54e80d9883bd5b76c80710bddc63d1bd3f374d50 (diff) | |
media: uvc: don't do DMA on stack
As warned by smatch:
drivers/media/usb/uvc/uvc_v4l2.c:911 uvc_ioctl_g_input() error: doing dma on the stack (&i)
drivers/media/usb/uvc/uvc_v4l2.c:943 uvc_ioctl_s_input() error: doing dma on the stack (&i)
those two functions call uvc_query_ctrl passing a pointer to
a data at the DMA stack. those are used to send URBs via
usb_control_msg(). Using DMA stack is not supported and should
not work anymore on modern Linux versions.
So, use a kmalloc'ed buffer.
Cc: [email protected] # Kernel 4.9 and upper
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions