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:
15c546e
)
[media] lgdt3306a: don't go past the buffer
author
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Tue, 28 Oct 2014 13:07:03 +0000
(11:07 -0200)
committer
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Tue, 3 Mar 2015 13:34:12 +0000
(10:34 -0300)
As warned by smatch:
drivers/media/dvb-frontends/lgdt3306a.c:1354 log10_x1000() error: buffer overflow 'valx_x10' 14 <= 14
drivers/media/dvb-frontends/lgdt3306a.c:1355 log10_x1000() error: buffer overflow 'log10x_x1000' 14 <= 14
There's a potential of returning a value out of the buffer. Fix it.
While here, remove the ugly braced block.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
No differences found