cirrusfb: do not allow unsupported pixel depth
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Mon, 13 Apr 2009 21:39:55 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Apr 2009 22:04:30 +0000 (15:04 -0700)
commit0efb2a03af7eddadb4d0db5f855b1614ba9b0a00
tree6cadf4f50fbdee402182c793c1b2239b4ac4a2c9
parent697f619fc87aa9bf5b6c8c756f7ea54e950d5cd5
cirrusfb: do not allow unsupported pixel depth

Do not allow modes with unsupported pixel depth.  Otherwise, one can hang
a computer by setting incorrect value with fbset command.

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/cirrusfb.c