]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPFB: fix parsing of vram parameter
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 10 May 2012 08:15:14 +0000 (11:15 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 May 2012 11:44:27 +0000 (14:44 +0300)
commite2e350e297b77905d33eed253412d62ed1b07ec2
tree198ca5954a9dd59e005c871374fffac355f7e6ab
parent4a26e59cc0214f490157bed6316d2c8322b9fcda
OMAPFB: fix parsing of vram parameter

omapfb_parse_vram_param()'s check for end pointer returned from
simple_strtoul() is wrong, causing the code to bug if the second or
later vram parameters are non-parseable, for example
"omapfb.vram=0:2M,:5M".

However, even in that case the code will most likely bail out with
-EINVAL in the following checks, so the bug is probably not a fatal one.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reported-by: Hein Tibosch <hein_tibosch@yahoo.es>
drivers/video/omap2/omapfb/omapfb-main.c