aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fb-puv3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fb-puv3.c')
-rw-r--r--drivers/video/fb-puv3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fb-puv3.c b/drivers/video/fb-puv3.c
index 27f2c57e06e9..60a787fa32cf 100644
--- a/drivers/video/fb-puv3.c
+++ b/drivers/video/fb-puv3.c
@@ -624,8 +624,8 @@ static int unifb_pan_display(struct fb_var_screeninfo *var,
624 || var->xoffset) 624 || var->xoffset)
625 return -EINVAL; 625 return -EINVAL;
626 } else { 626 } else {
627 if (var->xoffset + var->xres > info->var.xres_virtual || 627 if (var->xoffset + info->var.xres > info->var.xres_virtual ||
628 var->yoffset + var->yres > info->var.yres_virtual) 628 var->yoffset + info->var.yres > info->var.yres_virtual)
629 return -EINVAL; 629 return -EINVAL;
630 } 630 }
631 info->var.xoffset = var->xoffset; 631 info->var.xoffset = var->xoffset;