lkml.org 
[lkml]   [2011]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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@ksplice.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


\
 
 \ /
  Last update: 2011-04-25 16:31    [W:0.293 / U:1.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site