diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 08:01:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 08:01:47 -0700 |
commit | 0cc6d77e55eca9557bbe41bf2db94b31aa8fcb2a (patch) | |
tree | 432df46039500f5220ae315f1efca9431ea257e3 /arch/x86/kernel/e820.c | |
parent | 55e0715f612f19b44c17497929091df2f3357e5d (diff) | |
parent | 5051fd69773d2d044734b78516317a04d3774871 (diff) | |
download | linux-0cc6d77e55eca9557bbe41bf2db94b31aa8fcb2a.tar.bz2 |
Merge branch 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
x86, e820: Guard against array overflowed in __e820_add_region()
x86, setup: remove obsolete pre-Kconfig CONFIG_VIDEO_ variables
Diffstat (limited to 'arch/x86/kernel/e820.c')
-rw-r--r-- | arch/x86/kernel/e820.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 5cb5725b2bae..147005a1cc3c 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -115,7 +115,7 @@ static void __init __e820_add_region(struct e820map *e820x, u64 start, u64 size, { int x = e820x->nr_map; - if (x == ARRAY_SIZE(e820x->map)) { + if (x >= ARRAY_SIZE(e820x->map)) { printk(KERN_ERR "Ooops! Too many entries in the memory map!\n"); return; } |