Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168428
b: refs/heads/master
c: 506f90e
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Ingo Molnar committed Nov 10, 2009
1 parent 110e294 commit af3e2b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de2a47cf2b3f59ef9664b277f4021b91af13598e
refs/heads/master: 506f90eeae682dc96c11c7aefac0262b3a560b49
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ static enum ucode_state request_microcode_fw(int cpu, struct device *device)
return UCODE_NFOUND;
}

if (*(u32 *)firmware->data != UCODE_MAGIC) {
printk(KERN_ERR "microcode: invalid UCODE_MAGIC (0x%08x)\n",
*(u32 *)firmware->data);
return UCODE_ERROR;
}

ret = generic_load_microcode(cpu, firmware->data, firmware->size);

release_firmware(firmware);
Expand Down

0 comments on commit af3e2b9

Please sign in to comment.