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.10-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.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From f8e1b699a5504a2da05834c7cfdddb125a8ce088 Mon Sep 17 00:00:00 2001
From: Hans Verkuil <hans.verk...@cisco.com>
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 <hans.verk...@cisco.com>

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.verk...@cisco.com>
Reported-by: Lorenz Röhrl <sheeps...@gmx.de>
Tested-by: Lorenz Röhrl <sheeps...@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.che...@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>

---
 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
@@ -4226,7 +4226,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 hans.verk...@cisco.com are

queue-3.10/media-saa7164-fix-return-value-check-in-saa7164_initdev.patch
queue-3.10/media-wm8775-fix-broken-audio-routing.patch
queue-3.10/media-bttv-don-t-setup-the-controls-if-there-are-no-video-devices.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to