[media] v4l: soc-camera: fix multiple simultaneous user case
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Sat, 25 Dec 2010 21:29:52 +0000 (18:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 26 Dec 2010 00:54:49 +0000 (22:54 -0200)
commit24d8c0293b04ad207648bb2a0dbfebff8b47d166
tree5e92313697b53e3b3a9d72a950d567623285b6c3
parent501aaa110a4269c99eff9736a81b5f93bb8b59be
[media] v4l: soc-camera: fix multiple simultaneous user case

A recent patch has introduced a regression, whereby a second open of an
soc-camera video device breaks the running capture. This patch fixes this bug
by guaranteeing, that video buffers get initialised only during the first open
of the device node.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c