mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 02:21:15 +00:00
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>
This commit is contained in:
parent
a0a29b62a9
commit
a1c75cc501
3 changed files with 7 additions and 7 deletions
|
@ -70,8 +70,6 @@
|
|||
* Fix sigmatch() macro to handle old CPUs with pf == 0.
|
||||
* Thanks to Stuart Swales for pointing out this bug.
|
||||
*/
|
||||
|
||||
/* #define DEBUG */ /* pr_debug */
|
||||
#include <linux/capability.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
@ -356,6 +354,8 @@ static int generic_load_microcode(int cpu, void *data, size_t size,
|
|||
}
|
||||
|
||||
if (get_matching_microcode(&uci->cpu_sig, mc, new_rev)) {
|
||||
if (new_mc)
|
||||
vfree(new_mc);
|
||||
new_rev = mc_header.rev;
|
||||
new_mc = mc;
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue