]> Git Repo - linux.git/commit
[media] bttv: don't setup the controls if there are no video devices
authorHans Verkuil <[email protected]>
Mon, 11 Nov 2013 11:16:03 +0000 (08:16 -0300)
committerMauro Carvalho Chehab <[email protected]>
Fri, 29 Nov 2013 16:18:33 +0000 (14:18 -0200)
commitf8e1b699a5504a2da05834c7cfdddb125a8ce088
tree65fcd049b419d75c6bb7bc1d9238180f33ff2fac
parent0c413d10515feae02cee967b31bb8afea8aa0d29
[media] bttv: don't setup the controls if there are no video devices

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 <[email protected]>
Reported-by: Lorenz Röhrl <[email protected]>
Tested-by: Lorenz Röhrl <[email protected]>
Cc: [email protected]
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/pci/bt8xx/bttv-driver.c
This page took 0.046713 seconds and 4 git commands to generate.