This is a note to let you know that I've just added the patch titled
media: bttv: don't setup the controls if there are no video devices
to the 3.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
media-bttv-don-t-setup-the-controls-if-there-are-no-video-devices.patch
and it can be found in the queue-3.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From f8e1b699a5504a2da05834c7cfdddb125a8ce088 Mon Sep 17 00:00:00 2001
From: Hans Verkuil <[email protected]>
Date: Mon, 11 Nov 2013 08:16:03 -0300
Subject: media: bttv: don't setup the controls if there are no video devices
From: Hans Verkuil <[email protected]>
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 <[email protected]>
Reported-by: Lorenz Röhrl <[email protected]>
Tested-by: Lorenz Röhrl <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/media/pci/bt8xx/bttv-driver.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/media/pci/bt8xx/bttv-driver.c
+++ b/drivers/media/pci/bt8xx/bttv-driver.c
@@ -4182,7 +4182,8 @@ static int bttv_probe(struct pci_dev *de
}
btv->std = V4L2_STD_PAL;
init_irqreg(btv);
- v4l2_ctrl_handler_setup(hdl);
+ if (!bttv_tvcards[btv->c.type].no_video)
+ v4l2_ctrl_handler_setup(hdl);
if (hdl->error) {
result = hdl->error;
goto fail2;
Patches currently in stable-queue which might be from [email protected] are
queue-3.12/media-saa7164-fix-return-value-check-in-saa7164_initdev.patch
queue-3.12/media-wm8775-fix-broken-audio-routing.patch
queue-3.12/media-bttv-don-t-setup-the-controls-if-there-are-no-video-devices.patch
queue-3.12/media-tef6862-radio-tea5764-actually-assign-clamp-result.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html