[media] exynos-gsc: Don't use mutex_lock_interruptible() in device release()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 21 Nov 2012 14:46:43 +0000 (11:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 26 Nov 2012 20:43:08 +0000 (18:43 -0200)
commit9868018045c555c7a724c0cb7eeb0caeba9d43ff
tree8bc64d8de0f680a284713ccbd00587dd4e171e77
parentddc43d6dc7df0849fe41b91460fa76145cf87b67
[media] exynos-gsc: 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 may cause driver resources not to be released.

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>
drivers/media/platform/exynos-gsc/gsc-m2m.c