Skip to contentSkip to conversation

sgivwfb: The pseudo_palette is only 16 elements long

PATCH In review Antonino A. Daplas 1 participant 1 message Jun 2, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 13/24 sgivwfb: The pseudo_palette is only 16 elements long

The pseudo_palette is only 16 elements long.

---

 drivers/video/sgivwfb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/sgivwfb.c +1 -1
index ebb6756..4fb1624 100644
@@ -752,7 +752,7 @@ static int __init sgivwfb_probe(struct p
 	struct fb_info *info;
 	char *monitor;
 
-	info = framebuffer_alloc(sizeof(struct sgivw_par) + sizeof(u32) * 256, &dev->dev);
+	info = framebuffer_alloc(sizeof(struct sgivw_par) + sizeof(u32) * 16, &dev->dev);
 	if (!info)
 		return -ENOMEM;
 	par = info->par;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/