msm: mdss: acquire list_lock before calling free pipe
If unblank call and display thread tries to free pipe list at the same time; one of the caller might hit the null free list and leads to crash. Acquire list_lock before calling the free pipe API. Change-Id: Ieb6af1700803e3049ea918e2be358e55e43d477a Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
bb508cc57e
commit
25e5789688
1 changed files with 2 additions and 0 deletions
|
@ -3213,7 +3213,9 @@ static int mdss_mdp_overlay_off(struct msm_fb_data_type *mfd)
|
|||
|
||||
rc = mdss_mdp_ctl_stop(mdp5_data->ctl);
|
||||
if (rc == 0) {
|
||||
mutex_lock(&mdp5_data->list_lock);
|
||||
__mdss_mdp_overlay_free_list_purge(mfd);
|
||||
mutex_unlock(&mdp5_data->list_lock);
|
||||
mdss_mdp_ctl_notifier_unregister(mdp5_data->ctl,
|
||||
&mfd->mdp_sync_pt_data.notifier);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue