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:
Dhaval Patel 2014-06-05 10:32:30 -07:00 committed by David Keitel
parent bb508cc57e
commit 25e5789688

View file

@ -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);