lkml.org 
[lkml]   [2008]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 4/4] x86: Minor pointer type cast in AMD microcode patch loader.
Signed-off-by: Peter Oruba <peter.oruba@amd.com>
---
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) {
--
1.5.4.5





\
 
 \ /
  Last update: 2008-07-29 17:47    [from the cache]
©2003-2011 Jasper Spaans