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

Commit 64c8a021 authored by Ingrid Gallardo's avatar Ingrid Gallardo
Browse files

msm: mdss: fix typo checking the wrong context for error handling



Fix typo during the off work item; this can cause that
in case of an failure in the driver, the error goes silent
and power resources for the second display context
(i.e. bandwidth and clocks) stay enabled when not needed
without warning for this error.

Change-Id: Iff2683356ef6391ae57b3c5b711b544003584c7c
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
parent 7d6f4c43
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -905,7 +905,7 @@ static void clk_ctrl_delayed_off_work(struct work_struct *work)
		/* re-assign to have the correct order in the context */
		ctx = (struct mdss_mdp_cmd_ctx *) ctl->intf_ctx[MASTER_CTX];
		sctx = (struct mdss_mdp_cmd_ctx *) sctl->intf_ctx[MASTER_CTX];
		if (!ctx || !sctl) {
		if (!ctx || !sctx) {
			pr_err("invalid %s %s\n",
				ctx?"":"ctx", sctx?"":"sctx");
			return;