From: Adam Kropelin Date: Sun, 06 Jun 2004 04:37:34 +0000 Subject: [PATCH] sbusfb: Initialize cmap.transp in FBIOPUTCMAP_SPARC Message-Id: <20040606010629.A23517@mail.kroptech.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org, linux-fbdev-devel@lists.sourceforge.net Cc: jsimmons@infradead.org 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. Signed-off-by: Adam Kropelin --- linux-2.6.7-rc2/drivers/video/sbuslib.c 2004-05-09 22:32:27.000000000 -0400 +++ linux-2.6.7-rc2-adk/drivers/video/sbuslib.c 2004-06-06 04:10:52.682928000 -0400 @@ -122,6 +122,7 @@ cmap.red = &red; cmap.green = &green; cmap.blue = &blue; + cmap.transp = NULL; for (i = 0; i < count; i++) { int err;