mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
[PATCH] nvidiafb: Fix bug in nvidiafb_pan_display
nvidiafb_pan_display() is incorrectly using the fields in info->var instead of var passed to the function. Signed-off-by: Antonino Daplas <adaplas@pol.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
89a071b807
commit
3c8d61bcf2
1 changed files with 1 additions and 1 deletions
|
@ -1301,7 +1301,7 @@ static int nvidiafb_pan_display(struct fb_var_screeninfo *var,
|
|||
struct nvidia_par *par = info->par;
|
||||
u32 total;
|
||||
|
||||
total = info->var.yoffset * info->fix.line_length + info->var.xoffset;
|
||||
total = var->yoffset * info->fix.line_length + var->xoffset;
|
||||
|
||||
NVSetStartAddress(par, total);
|
||||
|
||||
|
|
Loading…
Reference in a new issue