]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86: minor pointer type cast in AMD microcode patch loader
authorPeter Oruba <peter.oruba@amd.com>
Tue, 29 Jul 2008 15:41:07 +0000 (17:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 31 Jul 2008 21:26:17 +0000 (23:26 +0200)
Signed-off-by: Peter Oruba <peter.oruba@amd.com>
Cc: Peter Oruba <peter.oruba@amd.com>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/microcode_amd.c

index 2b98e6ab1bf920c24f8be67c7b10657bdef979f2..33b2a217a8c552cc7ce616f9a1f74487c498051f 100644 (file)
@@ -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) {