projects/linux·commit bec41d5b

Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6

bec41d5b · Linus Torvalds <[email protected]> · 2010-12-28 11:23:30 -08:00

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6:
  [media] v4l: soc-camera: fix multiple simultaneous user case
Commit
bec41d5b8417ccb98e4752affa24e1dc563d99f9
Parents
92a8cd42 · 24d8c029

Merge commit. Changes below are compared with the first parent: 92a8cd42.

Changes

1 files changed · +2 −2

FileStatusAddDelContent
drivers/media/video/soc_camera.cmodified+2−2View file

drivers/media/video/soc_camera.c

View file
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c
index 335120c..052bd6d 100644
--- a/drivers/media/video/soc_camera.c
+++ b/drivers/media/video/soc_camera.c
@@ -405,13 +405,13 @@ static int soc_camera_open(struct file *file)
ret = soc_camera_set_fmt(icd, &f);
if (ret < 0)
goto esfmt;
+
+ ici->ops->init_videobuf(&icd->vb_vidq, icd);
}
file->private_data = icd;
dev_dbg(&icd->dev, "camera device open\n");
- ici->ops->init_videobuf(&icd->vb_vidq, icd);
-
mutex_unlock(&icd->video_lock);
return 0;