sbusfb: Initialize cmap.transp in FBIOPUTCMAP_SPARC
PATCH 1/1 sbusfb: Initialize cmap.transp in FBIOPUTCMAP_SPARC
When handling FBIOPUTCMAP_SPARC, sbusfb fails to initialize cmap.transp, which quickly leads to an oops when fb_set_cmap() dereferences it.
First encountered in Aurora Wombat kernels and seems to afflict mainline as well. Patch is against 2.6.7-rc2. xorg still fails to actually get anything to display on my CG6, but at least it no longer oopses the kernel.
drivers/video/sbuslib.c +1 -0
@@ -122,6 +122,7 @@ cmap.red = &red; cmap.green = &green; cmap.blue = &blue; + cmap.transp =NULL ;for (i =0 ; i < count; i++) {int err;
David S. Miller
AppliedQuoted 8 lines · On Sun, 6 Jun 2004 01:06:29 -0400 Adam Kropelin <[email protected]>…
When handling
FBIOPUTCMAP_SPARC, sbusfb fails to initialize cmap.transp, which quickly leads to an oops whenfb_set_cmap()dereferences it.First encountered in Aurora Wombat kernels and seems to afflict mainline as well. Patch is against 2.6.7-rc2. xorg still fails to actually get anything to display on my CG6, but at least it no longer oopses the kernel.
Signed-off-by Adam Kropelin <[email protected]>
Applied, thanks a lot Adam.