Skip to content

Commit

Permalink
x86: minor pointer type cast in AMD microcode patch loader
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Oruba authored and Ingo Molnar committed Jul 31, 2008
1 parent 831f9bd commit daa9c0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit daa9c0f

Please sign in to comment.