]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] vgacon: Fix sanity checking in vgacon_resize
authorAntonino A. Daplas <adaplas@gmail.com>
Thu, 15 Sep 2005 13:14:56 +0000 (21:14 +0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 15 Sep 2005 15:24:09 +0000 (08:24 -0700)
commit9197761ea81f2d401dac5d9039994f4222fc7682
tree8b49ebe957891c439dd0b596eb7eb78cc2ae0765
parent8313b6d85550342ab763e51743655028cef8d456
[PATCH] vgacon: Fix sanity checking in vgacon_resize

Reported by: walt <wa1ter@myrealbox.com>

"I routinely switch the console font during bootup to
8x8 so I can get 50 lines per screen.  Until 09 Sept,
just changing to the small font automatically gave me
all 50 lines -- but now I'm only getting 25 lines even
with the small font.  The bottom half of the screen
displays the text that already scrolled off the top."

This bug is due to an erroneous check in the recently added hook,
vgacon_resize(). It checks the new height against the original number of
rows of the console. Because the original number of rows depends on both
the scanline and the font height, check it instead against the
scanline/fontheight.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/vgacon.c