rockbox/firmware/target
Thomas Jarosch 575ec8902e mini2440: Fix bogus buffer access in LCD backlight driver
The backlight driver always writes a bogus value
from memory into the LCD brightness register.

Fix it up by adding bounds checks and
use a more sane default value.

While looking at the code, I noticed
that BACKLIGHT_CONTROL_SET probably ignores
the desired brightness level, too.

Note: Please test on real hardware, I don't own it.

cppcheck reported:
[rockbox/firmware/target/arm/s3c2440/mini2440/backlight-mini2440.c:53]: (error) Array 'log_brightness[13]' accessed at index 255, which is out of bounds.

Change-Id: Iaafa929a8adaa97b93ebcb66e1f6bd3bf0dad84e
2014-12-20 14:47:09 +01:00
..
arm mini2440: Fix bogus buffer access in LCD backlight driver 2014-12-20 14:47:09 +01:00
coldfire MPIO HD300: Fix occasional scrollstrip hang 2014-04-15 08:18:56 +02:00
hosted maemo port: Fix startup crash exposed by audio thread refactoring 2014-12-20 02:23:15 +01:00
mips Rewrite filesystem code (WIP) 2014-08-30 03:48:23 +02:00
sh Add missing kernel.h includes (hopefully all of them), take #2. 2014-01-05 20:42:48 +01:00