git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d162180
)
drm/panel: s6e8aa0: silence array overflow warning
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 9 Apr 2014 15:21:12 +0000
(18:21 +0300)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 5 Jun 2014 14:46:39 +0000
(16:46 +0200)
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 add that and silence the warning.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/panel/panel-s6e8aa0.c
patch
|
blob
|
history
diff --cc
drivers/gpu/drm/panel/panel-s6e8aa0.c
Simple merge