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

Commit 615e8b44 authored by Shalabh Jain's avatar Shalabh Jain Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Prevent NULL pointer access



Current code has scope of dereferencing an already
NULL variable. Implementing proper error handling
for NULL variable.

Change-Id: Iba46e676ce42adc286f907e72300786d3391a9a9
Signed-off-by: default avatarShalabh Jain <shalabhj@codeaurora.org>
parent 1ff72517
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2172,7 +2172,7 @@ int mdss_panel_get_boot_cfg(void)
	int rc;

	if (!mdss_res || !mdss_res->pan_cfg.init_done)
		rc = -EPROBE_DEFER;
		return -EPROBE_DEFER;
	if (mdss_res->pan_cfg.lk_cfg)
		rc = 1;
	else