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

Commit 1b7f1d14 authored by Abhijit Kulkarni's avatar Abhijit Kulkarni
Browse files

msm: mdss: lock mutex before setting backlight



Backlight set function call should be protected by mutex
as this call could be called from different threads.

CRs-Fixed: 1074738
Change-Id: Ie7f8cee59b90f16f8a844d618a6f903b3e3c2f27
Signed-off-by: default avatarAbhijit Kulkarni <kabhijit@codeaurora.org>
parent 3c7400dc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2702,7 +2702,9 @@ static int mdss_fb_release_all(struct fb_info *info, bool release_all)
		 * enabling ahead of unblank. for some special cases like
		 * adb shell stop/start.
		 */
		mutex_lock(&mfd->bl_lock);
		mdss_fb_set_backlight(mfd, 0);
		mutex_unlock(&mfd->bl_lock);

		ret = mdss_fb_blank_sub(FB_BLANK_POWERDOWN, info,
			mfd->op_enable);