]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OMAPDSS: fix WARN_ON in 'alpha_blending_enabled' sysfs file
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 27 Aug 2013 11:28:03 +0000 (14:28 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 29 Aug 2013 13:43:47 +0000 (16:43 +0300)
commit3825ce5a9bb6ac1f847828ba2b283c9c7aa77eb6
treeed4e7148290966da9fe0a24f075f162272accb54
parentdb680c65156083c8780044f46f7a74544fcb3ce2
OMAPDSS: fix WARN_ON in 'alpha_blending_enabled' sysfs file

The code handling 'alpha_blending_enabled' sysfs file contains WARN_ONs
in case the feature is not supported on the current platform. Even
though only root can write to the file, anyone can read it, thus causing
the kernel to get tainted and printing an ugly warning.

Instead of having WARN_ONs, return a proper error if the feature is not
supported.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reported-by: Russell King - ARM Linux <linux@arm.linux.org.uk>
drivers/video/omap2/dss/manager-sysfs.c