From 1683ab87bd6b54dee21a4c55cd3067f3513ac8cd Mon Sep 17 00:00:00 2001 From: Yuan Lin <yualin@google.com> Date: Fri, 25 Mar 2016 00:23:23 -0700 Subject: [PATCH] msm: display: Validate MDP, MDDI and HDMI reg offset bugfix There were several missing/wrong reg offset checkings in CL 545196. BUG=26404525 Change-Id: Ie928012e65bc8c3b1816bf6e14bede3e1e40cfea --- drivers/video/msm/mdp_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/msm/mdp_debugfs.c b/drivers/video/msm/mdp_debugfs.c index 15ef5f5b8325..be4eac56610c 100644 --- a/drivers/video/msm/mdp_debugfs.c +++ b/drivers/video/msm/mdp_debugfs.c @@ -1272,7 +1272,7 @@ static ssize_t hdmi_reg_write( cnt = sscanf(debug_buf, "%x %x", &off, &data); - if (cnt != 1) + if (cnt != 2) return -EFAULT; if (off > HDMI_MAX_OFFSET) { -- GitLab