Please sign in to comment.
drivers/tty/vt/vt_ioctl.c: fix KDFONTOP 32bit compatibility layer
KDFONTOP(GET) currently fails with EIO when being run in a 32bit userland with a 64bit kernel if the font width is not 8. This is because of the setting of the KD_FONT_FLAG_OLD flag, which makes con_font_get return EIO in such case. This flag should *not* be set for KDFONTOP, since it's actually the whole point of this flag (see comment in con_font_set for instance). Signed-off-by: Samuel Thibault <firstname.lastname@example.org> Reviewed-by: Arnd Bergmann <email@example.com> Cc: Greg Kroah-Hartman <firstname.lastname@example.org> Cc: Arthur Taylor <email@example.com> Cc: Jiri Slaby <firstname.lastname@example.org> Cc: Jiri Olsa <email@example.com> Cc: <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
- Loading branch information...