Hi Sergej,

I'm hoping this patch will take care of the bug you reported:

https://bugzilla.kernel.org/show_bug.cgi?id=24602

Please try it out and let me know.  I'll resend with a proper
signed-off-by if it fixes the problem.  (I don't have the hardware to
test this myself).

diff --git a/drivers/media/video/bt8xx/bttv-driver.c 
b/drivers/media/video/bt8xx/bttv-driver.c
index a529619..5620e20 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -3302,6 +3302,7 @@ static int bttv_open(struct file *file)
         * Let's first copy btv->init at fh, holding cap.vb_lock, and then work
         * with the rest of init, holding btv->lock.
         */
+       mutex_init(&fh->cap.vb_lock);
        mutex_lock(&fh->cap.vb_lock);
        *fh = btv->init;
        mutex_unlock(&fh->cap.vb_lock);
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to