diff mbox

Oops in 2.6.37-rc{3,4,5}

Message ID 20101212084504.GA27059@darkstar (mailing list archive)
State Superseded
Headers show

Commit Message

Dave Young Dec. 12, 2010, 8:45 a.m. UTC
None
diff mbox

Patch

--- linux-2.6.orig/drivers/media/video/bt8xx/bttv-driver.c	2010-11-27 11:21:30.000000000 +0800
+++ linux-2.6/drivers/media/video/bt8xx/bttv-driver.c	2010-12-12 16:31:39.633333338 +0800
@@ -3291,6 +3291,8 @@  static int bttv_open(struct file *file)
 	fh = kmalloc(sizeof(*fh), GFP_KERNEL);
 	if (unlikely(!fh))
 		return -ENOMEM;
+
+	mutex_init(&fh->cap.vb_lock);
 	file->private_data = fh;
 
 	/*