Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277483
b: refs/heads/master
c: d733689
h: refs/heads/master
i:
  277481: a51fee2
  277479: a02bad0
v: v3
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Dec 14, 2011
1 parent b046628 commit c4abc44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be62adb492943ce2525ff19401b389a85006ad15
refs/heads/master: d733689ad57ec332fb1e392115d83a75f35df1cf
22 changes: 9 additions & 13 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,27 +282,23 @@ generic_load_microcode(int cpu, const u8 *data, size_t size)
mc_hdr = patch;
new_mc = patch;
new_rev = mc_hdr->patch_id;
leftover -= mc_size;
} else {
ucode_ptr += current_size;
leftover -= current_size;
goto out_ok;
}

ucode_ptr += current_size;
leftover -= current_size;
}

if (!new_mc) {
state = UCODE_NFOUND;
goto free_table;
}

if (!leftover) {
uci->mc = new_mc;
state = UCODE_OK;
pr_debug("CPU%d update ucode (0x%08x -> 0x%08x)\n",
cpu, uci->cpu_sig.rev, new_rev);
} else {
new_mc = NULL;
state = UCODE_ERROR;
}
out_ok:
uci->mc = new_mc;
state = UCODE_OK;
pr_debug("CPU%d update ucode (0x%08x -> 0x%08x)\n",
cpu, uci->cpu_sig.rev, new_rev);

free_table:
free_equiv_cpu_table();
Expand Down

0 comments on commit c4abc44

Please sign in to comment.