View | Details | Raw Unified | Return to bug 302010
Collapse All | Expand All

(-)a/drivers/video/console/vgacon.c (-2 / +2 lines)
Lines 1241-1247 static int vgacon_font_set(struct vc_data *c, struct console_font *font, unsigne Link Here
1241
	unsigned charcount = font->charcount;
1241
	unsigned charcount = font->charcount;
1242
	int rc;
1242
	int rc;
1243
1243
1244
	if (vga_video_type < VIDEO_TYPE_EGAM)
1244
	if (vga_video_type < VIDEO_TYPE_EGAM || vga_is_gfx)
1245
		return -EINVAL;
1245
		return -EINVAL;
1246
1246
1247
	if (font->width != VGA_FONTWIDTH ||
1247
	if (font->width != VGA_FONTWIDTH ||
Lines 1259-1265 static int vgacon_font_set(struct vc_data *c, struct console_font *font, unsigne Link Here
1259
1259
1260
static int vgacon_font_get(struct vc_data *c, struct console_font *font)
1260
static int vgacon_font_get(struct vc_data *c, struct console_font *font)
1261
{
1261
{
1262
	if (vga_video_type < VIDEO_TYPE_EGAM)
1262
	if (vga_video_type < VIDEO_TYPE_EGAM || vga_is_gfx)
1263
		return -EINVAL;
1263
		return -EINVAL;
1264
1264
1265
	font->width = VGA_FONTWIDTH;
1265
	font->width = VGA_FONTWIDTH;

Return to bug 302010