pvr2fb: test var->xoffset as bool?
Subsystems (2)
PATCH 1/1 pvr2fb: test var->xoffset as bool?
was this what was intended?
------------8<------------->8------------
Test for negative xoffset
Signed-off-by Roel Kluin <[email protected]>
---
drivers/video/pvr2fb.c +1 -1
@@ -460,7 +460,7 @@ static int pvr2fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)set_color_bitfields (var);if (var->vmode &FB_VMODE_YWRAP ) { -if (var->xoffset || var->yoffset <0 || +if (var->xoffset <0 || var->yoffset <0 || var->yoffset >= var->yres_virtual) { var->xoffset = var->yoffset =0 ; }else {