diff options
| author | Shalabh Jain <shalabhj@codeaurora.org> | 2013-11-04 17:17:09 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:23:04 -0700 |
| commit | 1b99bcade8f99cb5057f6508815313e477162f44 (patch) | |
| tree | 9779b87f57180856174d90be27ab4b6d3b1626ee | |
| parent | d10c0d69a07b4d147fe604a8cbb1158f9658d1b1 (diff) | |
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: Shalabh Jain <shalabhj@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c index ae6c311a05d8..e74f07aa1afa 100644 --- a/drivers/video/fbdev/msm/mdss_mdp.c +++ b/drivers/video/fbdev/msm/mdss_mdp.c @@ -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 |
