diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-11-11 11:16:03 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-20 15:49:02 (GMT) |
commit | 4897de99f2482c96f830cfe23ce9ece2c41f4c25 (patch) | |
tree | 1ea2206104f3f1f5ffaa5c195203b1a988d115be /drivers/dio | |
parent | 0c7f417e105f068687191589219155bffda2e68b (diff) | |
download | linux-fsl-qoriq-4897de99f2482c96f830cfe23ce9ece2c41f4c25.tar.xz |
media: bttv: don't setup the controls if there are no video devices
commit f8e1b699a5504a2da05834c7cfdddb125a8ce088 upstream.
The no_video flag was checked in all other cases except one. Calling
v4l2_ctrl_handler_setup() if no_video is 1 will crash.
This wasn't noticed before since there are only two card types that
set no_video to 1, so this type of hardware is quite rare.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Lorenz Röhrl <sheepshit@gmx.de>
Tested-by: Lorenz Röhrl <sheepshit@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dio')
0 files changed, 0 insertions, 0 deletions