From ffc2bb1fda0f54eebbcea64a5b27294557d97a34 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 13 Jun 2009 07:36:56 +0000 Subject: [PATCH] sparc64 video.pal fix memory corruption (Igor Kovalenko) git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@503 f158a5a8-5612-0410-a976-696ce0be7e32 --- modules/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video.c b/modules/video.c index 5f4b70d..fe8f1a2 100644 --- a/modules/video.c +++ b/modules/video.c @@ -322,7 +322,7 @@ init_video( unsigned long fb, int width, int height, int depth, int rb ) set_property( ph, "address", (char*)&video.fb.mphys, 4 ); } video.has_video = 1; - video.pal = malloc( 256 * sizeof(int) ); + video.pal = malloc( 256 * sizeof(ulong) ); s = (video.fb.mphys & 0xfff); size = ((video.fb.h * video.fb.rb + s) + 0xfff) & ~0xfff;