diff options
author | Stephen Boyd | 2018-11-29 17:38:26 +0100 |
---|---|---|
committer | Andy Gross | 2018-11-30 00:41:53 +0100 |
commit | b601f73130a375c912d9f2ec93c5f3cea5d6a3da (patch) | |
tree | 567a9421a41e1c9705adf1f4dc9fe20d196dcf7f /include/soc | |
parent | soc: qcom: smd-rpm: Add QCS404 compatible (diff) | |
download | kernel-qcow2-linux-b601f73130a375c912d9f2ec93c5f3cea5d6a3da.tar.gz kernel-qcow2-linux-b601f73130a375c912d9f2ec93c5f3cea5d6a3da.tar.xz kernel-qcow2-linux-b601f73130a375c912d9f2ec93c5f3cea5d6a3da.zip |
drm: msm: Check cmd_db_read_aux_data() for failure
We need to check the call to cmd_db_read_aux_data() for the error case,
so that we don't continue and use potentially uninitialized values for
'pri_count' and 'sec_count'. Otherwise, we get the following compiler
warnings:
drivers/gpu/drm/msm/adreno/a6xx_gmu.c: In function 'a6xx_gmu_rpmh_arc_votes_init.isra.12':
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:943:12: warning: 'pri_count' is used uninitialized in this function [-Wuninitialized]
pri_count >>= 1;
^~~
drivers/gpu/drm/msm/adreno/a6xx_gmu.c:948:12: warning: 'sec_count' may be used uninitialized in this function
[-Wmaybe-uninitialized]
sec_count >>= 1;
^~~
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Jordan Crouse <jcrouse@codeaurora.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Evan Green <evgreen@chromium.org>
Cc: Jordan Crouse <jcrouse@codeaurora.org>
Cc: Rob Clark <robdclark@gmail.com>
Fixes: ed3cafa79ea7 ("soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data()")
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions