]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
fbdev: add palette register check to several drivers
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Wed, 16 Dec 2009 00:46:25 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:01 +0000 (07:20 -0800)
commit2f390380ca69e1617cdddb12d8da94f0a9f4319d
tree2f60b69e62e099c43a90197c62704f099ad2169e
parent2cb96f86628d6e97fcbda5fe4d8d74876239834c
fbdev: add palette register check to several drivers

Add check if palette register number is in correct range for few drivers
which miss it.  The regno value comes indirectly from user space.

Two drivers has converted check from BUG_ON() macro to just return an
error (non-zero value).

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/atafb.c
drivers/video/ep93xx-fb.c
drivers/video/maxinefb.c
drivers/video/pmag-ba-fb.c
drivers/video/pmagb-b-fb.c