]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-fimc: Fix bug in capture node open()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 16 May 2012 14:35:04 +0000 (11:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 25 Jun 2012 12:16:12 +0000 (09:16 -0300)
commit800d8102033d18cdcdc2ad768c8c781891dc6f33
tree36e7cbeb740ff76d314c6d5c93a695356c333b64
parent8702141dbb0f39316dfae835474d0779a3a0fcb5
[media] s5p-fimc: Fix bug in capture node open()

When video pipeline initialization fails, the ST_CAPT_BUSY flag
needs to be cleared before pm_runtime_put_sync is called.
Otherwise the runtime suspend routine tries to suspend device,
rather than just turning it off. Also fix potential null pointer
dereference in fimc_pipeline_shutdown().

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c
drivers/media/video/s5p-fimc/fimc-mdevice.c