• Alexander Viro's avatar
    [PATCH] con_set_font sanitized · 7b083b32
    Alexander Viro authored
    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: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    7b083b32
vt.c 75.1 KB