[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1104251020170.26664@dr-wily.mit.edu>
Date: Mon, 25 Apr 2011 10:28:50 -0400 (EDT)
From: Anders Kaseorg <andersk@...lice.com>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, x86@...nel.org
cc: Jeremy Fitzhardinge <jeremy@...p.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] x86, vdso: SHN_LORESERVE is an inclusive lower bound
Test for >= SHN_LORESERVE instead of > SHN_LORESERVE.
Signed-off-by: Anders Kaseorg <andersk@...lice.com>
---
arch/x86/vdso/vdso32-setup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index 468d591..226bfad 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -88,7 +88,7 @@ static __init void reloc_symtab(Elf32_Ehdr *ehdr,
sym->st_shndx == SHN_ABS)
continue; /* skip */
- if (sym->st_shndx > SHN_LORESERVE) {
+ if (sym->st_shndx >= SHN_LORESERVE) {
printk(KERN_INFO "VDSO: unexpected st_shndx %x\n",
sym->st_shndx);
continue;
--
1.7.5.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists