[patch] drm/panel: s6e8aa0: silence array overflow warning

2014-05-02 Thread Thierry Reding
On Wed, Apr 09, 2014 at 06:21:12PM +0300, Dan Carpenter wrote: > Smatch complains that we are reading beyond the end of the array here: > > drivers/gpu/drm/panel/panel-s6e8aa0.c:852 s6e8aa0_read_mtp_id() > warn: buffer overflow 's6e8aa0_variants' 4 <= 4 > > We set the error code, so i

[patch] drm/panel: s6e8aa0: silence array overflow warning

2014-04-10 Thread Andrzej Hajda
Hi Dan, Thanks for the patch. On 04/09/2014 05:21 PM, Dan Carpenter wrote: > Smatch complains that we are reading beyond the end of the array here: > > drivers/gpu/drm/panel/panel-s6e8aa0.c:852 s6e8aa0_read_mtp_id() > warn: buffer overflow 's6e8aa0_variants' 4 <= 4 > > We set the erro

[patch] drm/panel: s6e8aa0: silence array overflow warning

2014-04-09 Thread Dan Carpenter
Smatch complains that we are reading beyond the end of the array here: drivers/gpu/drm/panel/panel-s6e8aa0.c:852 s6e8aa0_read_mtp_id() warn: buffer overflow 's6e8aa0_variants' 4 <= 4 We set the error code, so it's not harmful but it looks like a return was intended here so lets ad