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

Commit b18ceed3 authored by Ingrid Gallardo's avatar Ingrid Gallardo
Browse files

msm: mdss: fix deadlock between commit thread and shutdown



There is a deadlock in use cases where fb shutdown
is called. To avoid this condition we need to
kill display thread before release happens during
shutdown.

Change-Id: I24b03e60179c605a8572b5a011d746002e26ca18
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent b05ec824
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2135,6 +2135,10 @@ static int mdss_fb_release_all(struct fb_info *info, bool release_all)
			pm_runtime_put(info->dev);
		} while (release_all && pinfo->ref_cnt);

		/* we need to stop display thread before release */
		if (release_all && mfd->disp_thread)
			mdss_fb_stop_disp_thread(mfd);

		if (pinfo->ref_cnt == 0) {
			list_del(&pinfo->list);
			kfree(pinfo);