Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8968
b: refs/heads/master
c: 6d36ba6
h: refs/heads/master
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Sep 15, 2005
1 parent 73d8faf commit 60594f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b6a186d65589901a73d460070504a5e02703c45
refs/heads/master: 6d36ba629e0ef47a03d3703ee1d38143c25532a8
4 changes: 3 additions & 1 deletion trunk/drivers/video/console/vgacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,9 @@ static int vgacon_font_get(struct vc_data *c, struct console_font *font)
static int vgacon_resize(struct vc_data *c, unsigned int width,
unsigned int height)
{
if (width % 2 || width > ORIG_VIDEO_COLS || height > ORIG_VIDEO_LINES)
if (width % 2 || width > ORIG_VIDEO_COLS ||
height > (ORIG_VIDEO_LINES * vga_default_font_height)/
c->vc_font.height)
return -EINVAL;

if (CON_IS_VISIBLE(c) && !vga_is_gfx) /* who knows */
Expand Down

0 comments on commit 60594f9

Please sign in to comment.