diff options
author | Ezequiel Garcia <[email protected]> | 2014-04-17 09:28:20 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2014-05-24 17:12:11 -0300 |
commit | 85ac1a1772bb41da895bad83a81f6a62c8f293f6 (patch) | |
tree | d491a04c51f663061fb9f7c968e2dbb1351e18fb /net/unix/sysctl_net_unix.c | |
parent | 8774bed9ce832d8d9ccb79e92800b808aa2d2ad2 (diff) |
[media] media: stk1160: Avoid stack-allocated buffer for control URBs
Currently stk1160_read_reg() uses a stack-allocated char to get the
read control value. This is wrong because usb_control_msg() requires
a kmalloc-ed buffer.
This commit fixes such issue by kmalloc'ating a 1-byte buffer to receive
the read value.
While here, let's remove the urb_buf array which was meant for a similar
purpose, but never really used.
Cc: Alan Stern <[email protected]>
Reported-by: Sander Eikelenboom <[email protected]>
Signed-off-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Cc: [email protected] # for v3.7 and up
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions