[media] usbvision: fix DMA from stack warnings
In various places the stack was used to provide buffers for USB data, but this should be allocated memory. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
e2c84ccb0f
commit
8926e84534
@@ -343,7 +343,7 @@ static int usbvision_i2c_write_max4(struct usb_usbvision *usbvision,
|
||||
{
|
||||
int rc, retries;
|
||||
int i;
|
||||
unsigned char value[6];
|
||||
unsigned char *value = usbvision->ctrl_urb_buffer;
|
||||
unsigned char ser_cont;
|
||||
|
||||
ser_cont = (len & 0x07) | 0x10;
|
||||
|
Reference in New Issue
Block a user