diff options
author | Peter Oruba <peter.oruba@amd.com> | 2008-07-29 15:41:07 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-31 21:26:17 (GMT) |
commit | daa9c0fee1cbe1d49fbe29af3d4bb16312043b1e (patch) | |
tree | 724cf256e619cd2549573d10b9bcaa64ba9d9259 /arch/x86/kernel/microcode_amd.c | |
parent | 831f9bd3151ebd22959a0cb2a20b44a06b26d4ed (diff) | |
download | linux-fsl-qoriq-daa9c0fee1cbe1d49fbe29af3d4bb16312043b1e.tar.xz |
x86: minor pointer type cast in AMD microcode patch loader
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>
Diffstat (limited to 'arch/x86/kernel/microcode_amd.c')
-rw-r--r-- | arch/x86/kernel/microcode_amd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/microcode_amd.c b/arch/x86/kernel/microcode_amd.c index 2b98e6a..33b2a21 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) { |