linux/drivers/media/platform/s5p-fimc
Sylwester Nawrocki ba6b372cf0 [media] s5p-fimc: Don't use mutex_lock_interruptible() in device release()
Use uninterruptible mutex_lock in the release() file op to make
sure all resources are properly freed when a process is being
terminated. Returning -ERESTARTSYS has no effect for a terminating
process and this caused driver resources not to be released. Not
releasing the buffer queue also prevented other drivers to free
memory, e.g. in MMAP -> USERPTR scenario.
This patch is required for stable kernels v3.6+.

Reported-by: Kamil Debski <k.debski@samsung.com>
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
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>
2012-11-26 18:30:19 -02:00
..
fimc-capture.c [media] s5p-fimc: Don't use mutex_lock_interruptible() in device release() 2012-11-26 18:30:19 -02:00
fimc-core.c
fimc-core.h
fimc-lite-reg.c
fimc-lite-reg.h
fimc-lite.c [media] s5p-fimc: Prevent race conditions during subdevs registration 2012-11-26 18:29:31 -02:00
fimc-lite.h
fimc-m2m.c [media] s5p-fimc: Don't use mutex_lock_interruptible() in device release() 2012-11-26 18:30:19 -02:00
fimc-mdevice.c [media] s5p-fimc: Prevent race conditions during subdevs registration 2012-11-26 18:29:31 -02:00
fimc-mdevice.h
fimc-reg.c
fimc-reg.h
Kconfig [media] s5p-csis: Select S5P_SETUP_MIPIPHY 2012-10-25 14:42:16 -02:00
Makefile
mipi-csis.c [media] s5p-csis: Allow to specify pixel clock's source through platform data 2012-10-05 22:35:16 -03:00
mipi-csis.h