summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2883ceb)
raw | patch | inline | side by side (parent: 2883ceb)
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | |
Wed, 25 May 2011 09:34:52 +0000 (11:34 +0200) | ||
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | |
Fri, 19 Aug 2011 08:35:34 +0000 (10:35 +0200) |
We must not use any information in the passed var besides xoffset,
yoffset and vmode as otherwise applications might abuse it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
yoffset and vmode as otherwise applications might abuse it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/vga16fb.c | patch | blob | history |
index 305c975b1787ea0628d600d2ac89c89cd0afdee9..0267acd8dc832690e3f02709a9e99361a8979805 100644 (file)
--- a/drivers/video/vga16fb.c
+++ b/drivers/video/vga16fb.c
* granularity if someone supports xoffset in bit resolution */
vga_io_r(VGA_IS1_RC); /* reset flip-flop */
vga_io_w(VGA_ATT_IW, VGA_ATC_PEL);
- if (var->bits_per_pixel == 8)
+ if (info->var.bits_per_pixel == 8)
vga_io_w(VGA_ATT_IW, (xoffset & 3) << 1);
else
vga_io_w(VGA_ATT_IW, xoffset & 7);