]> err.no Git - linux-2.6/commit
[PATCH] i810fb: Fix oops if CONFIG_FB_I810_I2C is set to no
authorAntonino A. Daplas <adaplas@gmail.com>
Mon, 12 Sep 2005 01:13:32 +0000 (09:13 +0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 12 Sep 2005 03:43:47 +0000 (20:43 -0700)
commit883f64510718e7df9abbfeec4748d92745d8cc3e
tree49cba3bb78cbf5329029948593eee9610794f669
parent81d4903d2d17a9f33ece2666185a8b51e6935ae0
[PATCH] i810fb: Fix oops if CONFIG_FB_I810_I2C is set to no

Reported by: Manuel Lauss <mano@roarinelk.homelinux.net>

compiled with CONFIG_FB_I810_I2C = n and CONFIG_FB_I810 = y
it oopses at boot in file drivers/video/i810/i810_main.c:1884

...
Unable to handle kernel NULL pointer dereference at virtual address 00000054
printing eip:
c02543c0
*pde = 00000000
Oops: 0000 [#1]
last sysfs file:
Modules linked in:
CPU:    0
EIP:    0060:[<c02543c0>]    Not tainted VLI
EFLAGS: 00010286   (2.6.13-mm2)
EIP is at i810fb_find_init_mode+0x53/0x93
eax: c113ddd4   ebx: c1194000   ecx: c04be2dd   edx: c1194000
esi: c1194008   edi: c113ddd4   ebp: c1194240   esp: c113ddcc
ds: 007b   es: 007b   ss: 0068

struct fb_monspecs *specs is initialized to NULL causing the oops.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/i810/i810_main.c