From: Peter Oruba Date: Tue, 29 Jul 2008 15:41:07 +0000 (+0200) Subject: x86: minor pointer type cast in AMD microcode patch loader X-Git-Tag: v2.6.28-rc1~699^2^4~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=daa9c0fee1cbe1d49fbe29af3d4bb16312043b1e;p=linux-2.6-omap-h63xx.git x86: minor pointer type cast in AMD microcode patch loader Signed-off-by: Peter Oruba Cc: Peter Oruba Cc: Tigran Aivazian Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/microcode_amd.c b/arch/x86/kernel/microcode_amd.c index 2b98e6ab1bf..33b2a217a8c 100644 --- a/arch/x86/kernel/microcode_amd.c +++ b/arch/x86/kernel/microcode_amd.c @@ -394,7 +394,8 @@ static int cpu_request_microcode_amd(int cpu) return error; } - buf_pos = buf = firmware->data; + buf_pos = (unsigned int *)firmware->data; + buf = (void *)firmware->data; size = firmware->size; if (buf_pos[0] != UCODE_MAGIC) {