drm/tgm: fix deadlock issue 22/176922/1 accepted/tizen/unified/20180424.165728 submit/tizen/20180424.080322
authorInki Dae <inki.dae@samsung.com>
Tue, 24 Apr 2018 06:09:19 +0000 (15:09 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 24 Apr 2018 07:30:00 +0000 (16:30 +0900)
commit4d257b46d5759c3c0036ace82ba447536229a883
treeaa9a20d7a9cbde28611b2b11850cb45f71b9b5ec
parent92846f46712a3cced575afbbc8f55f2391153ef1
drm/tgm: fix deadlock issue

Fixed a deadlock issue on mem_lock of tdm pp driver.

The deadlock could happen when pp_start_property function
is called at the funciton which already taken a mem_lock
because pp_start_property takes the mem_lock internally
so this patch makes the mem_lock to be unlocked before
pp_start_property funciton is called.

Change-Id: Icde3999a978252c00d845fd0a954cf5d3298397a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/tgm/tdm_pp.c