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

Commit a3cb6c08 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 f600d8b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7401,8 +7401,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)