Thread (6 messages) 6 messages, 4 authors, 2018-11-30

Re: [PATCH] drm: msm: Check cmd_db_read_aux_data() for failure

From: Rob Clark <hidden>
Date: 2018-11-29 23:24:56
Also in: linux-arm-msm, lkml

On Thu, Nov 29, 2018 at 5:36 PM Andy Gross [off-list ref] wrote:
On Thu, Nov 29, 2018 at 08:38:26AM -0800, Stephen Boyd wrote:
quoted
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 <redacted>
Reported-by: kbuild test robot <redacted>
Cc: Jordan Crouse <redacted>
Cc: Bjorn Andersson <redacted>
Cc: Evan Green <redacted>
Cc: Jordan Crouse <redacted>
Cc: Rob Clark <redacted>
Fixes: ed3cafa79ea7 ("soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data()")
Signed-off-by: Stephen Boyd <redacted>
Thanks for the patch.  Queueing this up.
from talking to agross on IRC, seems like this becomes an issue w/
other patches he has queued up for 4.21, and I don't think this should
conflict w/ other stuff I have, so

Acked-by: Rob Clark <redacted>

for Andy picking up this one

BR,
-R
Andy
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help