summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorCharles Bin <cbin@codeaurora.org>2014-07-30 14:28:51 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:32:25 -0700
commitae7611148f1703544b7a092dab4770dae0ce83c2 (patch)
treefa95361daa311cb778e6a7e58530860b3af79dc6 /drivers/video/fbdev
parent7c70e9299f4a319ee819c43a356b5514adb4d0df (diff)
mdss: hdmi: Fix null dereferences
Add null check to fix potential null dereferences in driver. Change-Id: I913d4a8e5dc3e61e534243ab77d788ad64815b28 Signed-off-by: Charles Bin <cbin@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_hdcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_hdcp.c b/drivers/video/fbdev/msm/mdss_hdmi_hdcp.c
index 229297a156f8..e8d6e0f8f6af 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_hdcp.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_hdcp.c
@@ -1046,6 +1046,11 @@ error:
DEV_INFO("%s: %s: Authentication Part II successful\n",
__func__, HDCP_STATE_NAME);
+ if (!hdcp_ctrl) {
+ DEV_ERR("%s: hdcp_ctrl null. Topology not updated\n",
+ __func__);
+ return rc;
+ }
/* Update topology information */
hdcp_ctrl->current_tp.dev_count = down_stream_devices;
hdcp_ctrl->current_tp.max_cascade_exceeded = max_cascade_exceeded;