patch-2.1.130 linux/drivers/video/vesafb.c
Next file: linux/fs/hfs/ChangeLog
Previous file: linux/drivers/video/tgafb.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Wed Nov 25 14:53:51 1998
- Orig file:
v2.1.129/linux/drivers/video/vesafb.c
- Orig date:
Fri Oct 9 13:27:12 1998
diff -u --recursive --new-file v2.1.129/linux/drivers/video/vesafb.c linux/drivers/video/vesafb.c
@@ -126,10 +126,12 @@
}
static int vesafb_pan_display(struct fb_var_screeninfo *var, int con,
- struct fb_info *info)
+ struct fb_info *info)
{
int offset;
+ if (!ypan && !ywrap)
+ return -EINVAL;
if (var->xoffset)
return -EINVAL;
if (ypan && var->yoffset+var->yres > var->yres_virtual)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov