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

Commit 4fbb6815 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

mdss: mdp: start vreg release index from PANEL_PM



Start vreg release index from PANEL_PM to avoid
release call with DSI_MAX_PM in error case. This
avoids crash in dsi_probe if panel node parsing fails.

Change-Id: I236f40851d41831fe37eea77aa83e2f4ce031a3b
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 82f65cf9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1368,6 +1368,7 @@ static int mdss_dsi_ctrl_probe(struct platform_device *pdev)

error_pan_node:
	of_node_put(dsi_pan_node);
	i--;
error_vreg:
	for (; i >= 0; i--)
		mdss_dsi_put_dt_vreg_data(&pdev->dev,