aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/microcode_amd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/microcode_amd.c b/arch/x86/kernel/microcode_amd.c
index 2b98e6ab1bf9..33b2a217a8c5 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)
394 return error; 394 return error;
395 } 395 }
396 396
397 buf_pos = buf = firmware->data; 397 buf_pos = (unsigned int *)firmware->data;
398 buf = (void *)firmware->data;
398 size = firmware->size; 399 size = firmware->size;
399 400
400 if (buf_pos[0] != UCODE_MAGIC) { 401 if (buf_pos[0] != UCODE_MAGIC) {