Commit 23dc8b1c authored by Laurent Pinchart's avatar Laurent Pinchart

mb862xxfb: use display information in info not in var for panning

We must not use any information in the passed var besides xoffset,
yoffset and vmode as otherwise applications might abuse it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent f5b9cc6a
...@@ -278,7 +278,7 @@ static int mb862xxfb_pan(struct fb_var_screeninfo *var, ...@@ -278,7 +278,7 @@ static int mb862xxfb_pan(struct fb_var_screeninfo *var,
reg = pack(var->yoffset, var->xoffset); reg = pack(var->yoffset, var->xoffset);
outreg(disp, GC_L0WY_L0WX, reg); outreg(disp, GC_L0WY_L0WX, reg);
reg = pack(var->yres_virtual, var->xres_virtual); reg = pack(info->var.yres_virtual, info->var.xres_virtual);
outreg(disp, GC_L0WH_L0WW, reg); outreg(disp, GC_L0WH_L0WW, reg);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment