]> git.hungrycats.org Git - linux/commit
[PATCH] con_set_font sanitized
authorAlexander Viro <viro@www.linux.org.uk>
Thu, 29 Jul 2004 15:47:55 +0000 (08:47 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 29 Jul 2004 15:47:55 +0000 (08:47 -0700)
commit7b083b32924cf32e88fc524d29fd787a606b0fb9
tree74e3d608b5256d2d065870fa46ef66b015912d61
parent5e19073981761189aad55e0d11490ed7fe1fbad1
[PATCH] con_set_font sanitized

con_font_set() sanitized.  We are passing console_font and flags into
the method in separate arguments and we are not messing with
console_font_op->data anymore - it's a userland pointer (to be annotated
several patches later in the series, due to another abuse of console_font_op
that needs to be fixed first), while console_font->data is kernel one
and they don't mix anymore.

We also do a sanity check (font width > 0) in the caller instead of
method instances, since we are already checking for width <= 32 and
height <= 32 there; doesn't make sense leaving that one in method
instances.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/vt.c
drivers/video/console/fbcon.c
drivers/video/console/newport_con.c
drivers/video/console/vgacon.c
include/linux/console.h