diff options
| author | Patrick Auchter <auchter@motorola.com> | 2016-05-17 16:50:45 -0700 |
|---|---|---|
| committer | Harsh Sahu <hsahu@codeaurora.org> | 2016-11-11 12:18:37 -0800 |
| commit | 66221ce8c2a8ef0134ad4daa0a0f3f581b0ed5ad (patch) | |
| tree | 992be720b1695ca850791056d202e012a4e39ff3 /lib/mpi/mpicoder.c | |
| parent | 0e5b65737dc2c448bd54ebc3c1c39d62df29372e (diff) | |
msm: mdss: fix possible overflow errors in panel_debug_base_reg_read
The panel_reg_buf is a dynamically allocated buffer of size reg_buf_len
so checking sizeof(panel_reg_buf) is incorrect. Using scnprintf will
ensure that len is at most reg_buf_len - 1 after all the prints. This
allows sanity checks to be removed which were incorrectly skipping
clock disable, resulting in an extra clock reference count.
Change-Id: Ic3bb685c7b83eefef7bc207ad93d6a2a9e36fd33
Signed-off-by: Patrick Auchter <auchter@motorola.com>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
(cherry picked from commit 89bede0751357bc24701b8ebfe326d3e6bb46683)
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
