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

Commit 2d06339a authored by Ping Li's avatar Ping Li
Browse files

msm: mdss: Fix deadlock in AD code



AD calc_worker vsync thread acquires the AD lock inside the function,
so the call to cancel the AD calc_worker vsync thread cannot be within
the AD lock.

Change-Id: Ice78f43721916110f52c3393f78c3a1868976821
Signed-off-by: default avatarPing Li <pingli@codeaurora.org>
parent 288b0504
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7313,8 +7313,8 @@ static int pp_mfd_ad_release_all(struct msm_fb_data_type *mfd)
	ad->mfd = NULL;
	ad->bl_mfd = NULL;
	ad->state = 0;
	cancel_work_sync(&ad->calc_work);
	mutex_unlock(&ad->lock);
	cancel_work_sync(&ad->calc_work);

	ctl = mfd_to_ctl(mfd);
	if (ctl && ctl->ops.remove_vsync_handler)