lkml.org 
[lkml]   [1998]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: [PATCH] Oops in framebuffer code.
In lists.linux.kernel you write:


>dwmw2@devel2.axiom.internal said:
>> With vesafb in 2.1.127, there's no fb_pan_display routine set, but
>> fbmem.c tries to call it upon a FBIOPAN_DISPLAY ioctl without first
>> checking that it's present. Not good.

>> Patch not compiled or tested, and it's probably in vger anyway, but
>> what the hell...

>Patch not working. Arse.

Here is a _tested_ one.

Gerd

-----------------------------------------------------------------------
--- drivers/video/vesafb.c-orig Fri Oct 9 22:06:46 1998
+++ drivers/video/vesafb.c Fri Oct 9 22:10:26 1998
@@ -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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.038 / U:1.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site