diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/vga16fb.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/video/vga16fb.c b/drivers/video/vga16fb.c index 226ae8a88482..f3f16fd9f231 100644 --- a/drivers/video/vga16fb.c +++ b/drivers/video/vga16fb.c | |||
@@ -705,15 +705,7 @@ static int vga16fb_setcolreg(unsigned regno, unsigned red, unsigned green, | |||
705 | static int vga16fb_pan_display(struct fb_var_screeninfo *var, | 705 | static int vga16fb_pan_display(struct fb_var_screeninfo *var, |
706 | struct fb_info *info) | 706 | struct fb_info *info) |
707 | { | 707 | { |
708 | if (var->xoffset + info->var.xres > info->var.xres_virtual || | ||
709 | var->yoffset + info->var.yres > info->var.yres_virtual) | ||
710 | return -EINVAL; | ||
711 | |||
712 | vga16fb_pan_var(info, var); | 708 | vga16fb_pan_var(info, var); |
713 | |||
714 | info->var.xoffset = var->xoffset; | ||
715 | info->var.yoffset = var->yoffset; | ||
716 | info->var.vmode &= ~FB_VMODE_YWRAP; | ||
717 | return 0; | 709 | return 0; |
718 | } | 710 | } |
719 | 711 | ||