Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145762
b: refs/heads/master
c: aeef50b
h: refs/heads/master
v: v3
  • Loading branch information
Figo.zhang authored and Ingo Molnar committed Jun 7, 2009
1 parent 611ba19 commit 7bc366a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 871b72dd1e12afc3f024479531d25a9339d2e3f9
refs/heads/master: aeef50bc0483fa70ce0bddb686ec84a274b7f3d4
12 changes: 4 additions & 8 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ static int install_equiv_cpu_table(const u8 *buf)

static void free_equiv_cpu_table(void)
{
if (equiv_cpu_table) {
vfree(equiv_cpu_table);
equiv_cpu_table = NULL;
}
vfree(equiv_cpu_table);
equiv_cpu_table = NULL;
}

static enum ucode_state
Expand Down Expand Up @@ -279,8 +277,7 @@ generic_load_microcode(int cpu, const u8 *data, size_t size)

mc_header = (struct microcode_header_amd *)mc;
if (get_matching_microcode(cpu, mc, new_rev)) {
if (new_mc)
vfree(new_mc);
vfree(new_mc);
new_rev = mc_header->patch_id;
new_mc = mc;
} else
Expand All @@ -292,8 +289,7 @@ generic_load_microcode(int cpu, const u8 *data, size_t size)

if (new_mc) {
if (!leftover) {
if (uci->mc)
vfree(uci->mc);
vfree(uci->mc);
uci->mc = new_mc;
pr_debug("microcode: CPU%d found a matching microcode "
"update with version 0x%x (current=0x%x)\n",
Expand Down

0 comments on commit 7bc366a

Please sign in to comment.