Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88af6688 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

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: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 1559d923
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3211,7 +3211,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);