git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/microcode/intel: Guard against stack overflow in the loader
[pandora-kernel.git]
/
arch
/
x86
/
kernel
/
cpu
/
microcode
/
intel_early.c
diff --git
a/arch/x86/kernel/cpu/microcode/intel_early.c
b/arch/x86/kernel/cpu/microcode/intel_early.c
index
ec9df6f
..
5e109a3
100644
(file)
--- a/
arch/x86/kernel/cpu/microcode/intel_early.c
+++ b/
arch/x86/kernel/cpu/microcode/intel_early.c
@@
-321,7
+321,7
@@
get_matching_model_microcode(int cpu, unsigned long start,
unsigned int mc_saved_count = mc_saved_data->mc_saved_count;
int i;
- while (leftover) {
+ while (leftover
&& mc_saved_count < ARRAY_SIZE(mc_saved_tmp)
) {
mc_header = (struct microcode_header_intel *)ucode_ptr;
mc_size = get_totalsize(mc_header);