commit | 1683ab87bd6b54dee21a4c55cd3067f3513ac8cd | [log] [tgz] |
---|---|---|
author | Yuan Lin <yualin@google.com> | Fri Mar 25 00:23:23 2016 -0700 |
committer | Yuan Lin <yualin@google.com> | Fri Mar 25 00:23:23 2016 -0700 |
tree | f4dfdadeb9edf3ff9c5fc43dfcd368199d8c0e66 | |
parent | 02f6246d26d231847f91ccc49dff44eb5f695c83 [diff] |
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
diff --git a/drivers/video/msm/mdp_debugfs.c b/drivers/video/msm/mdp_debugfs.c index 15ef5f5..be4eac5 100644 --- a/drivers/video/msm/mdp_debugfs.c +++ b/drivers/video/msm/mdp_debugfs.c
@@ -1272,7 +1272,7 @@ cnt = sscanf(debug_buf, "%x %x", &off, &data); - if (cnt != 1) + if (cnt != 2) return -EFAULT; if (off > HDMI_MAX_OFFSET) {