diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-09-14 08:50:26 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-09-14 08:53:00 -0400 |
| commit | a1c75cc5018f17ff6d80ce45a13435b1536f76db (patch) | |
| tree | 2b6e394379fe2035f26c4853b4cd462019b9e0a4 /arch/x86/kernel/microcode_intel.c | |
| parent | a0a29b62a9cac6b7d83b7514679f2ed8d33d4372 (diff) | |
x86, microcode rework, v2, fix
based on patch from Dmitry Adamushko.
- add missing vfree()
- update debug printks
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/microcode_intel.c')
| -rw-r--r-- | arch/x86/kernel/microcode_intel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/microcode_intel.c b/arch/x86/kernel/microcode_intel.c index f4930b55c6a0..48ed3cef58c1 100644 --- a/arch/x86/kernel/microcode_intel.c +++ b/arch/x86/kernel/microcode_intel.c | |||
| @@ -70,8 +70,6 @@ | |||
| 70 | * Fix sigmatch() macro to handle old CPUs with pf == 0. | 70 | * Fix sigmatch() macro to handle old CPUs with pf == 0. |
| 71 | * Thanks to Stuart Swales for pointing out this bug. | 71 | * Thanks to Stuart Swales for pointing out this bug. |
| 72 | */ | 72 | */ |
| 73 | |||
| 74 | /* #define DEBUG */ /* pr_debug */ | ||
| 75 | #include <linux/capability.h> | 73 | #include <linux/capability.h> |
| 76 | #include <linux/kernel.h> | 74 | #include <linux/kernel.h> |
| 77 | #include <linux/init.h> | 75 | #include <linux/init.h> |
| @@ -356,6 +354,8 @@ static int generic_load_microcode(int cpu, void *data, size_t size, | |||
| 356 | } | 354 | } |
| 357 | 355 | ||
| 358 | if (get_matching_microcode(&uci->cpu_sig, mc, new_rev)) { | 356 | if (get_matching_microcode(&uci->cpu_sig, mc, new_rev)) { |
| 357 | if (new_mc) | ||
| 358 | vfree(new_mc); | ||
| 359 | new_rev = mc_header.rev; | 359 | new_rev = mc_header.rev; |
| 360 | new_mc = mc; | 360 | new_mc = mc; |
| 361 | } else | 361 | } else |
