diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fbmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index a85c818be945..346f257215a7 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -871,8 +871,8 @@ fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var) | |||
871 | err = -EINVAL; | 871 | err = -EINVAL; |
872 | 872 | ||
873 | if (err || !info->fbops->fb_pan_display || | 873 | if (err || !info->fbops->fb_pan_display || |
874 | var->yoffset + yres > info->var.yres_virtual || | 874 | var->yoffset > info->var.yres_virtual - yres || |
875 | var->xoffset + info->var.xres > info->var.xres_virtual) | 875 | var->xoffset > info->var.xres_virtual - info->var.xres) |
876 | return -EINVAL; | 876 | return -EINVAL; |
877 | 877 | ||
878 | if ((err = info->fbops->fb_pan_display(var, info))) | 878 | if ((err = info->fbops->fb_pan_display(var, info))) |