Fix a silly bug.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15131 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_aspacemgr/aspacemgr-linux.c b/coregrind/m_aspacemgr/aspacemgr-linux.c
index d32a048..937c1c4 100644
--- a/coregrind/m_aspacemgr/aspacemgr-linux.c
+++ b/coregrind/m_aspacemgr/aspacemgr-linux.c
@@ -1314,7 +1314,7 @@
       /* If the abutting segment towards lower addresses is an SkResvn
          segment, then ADDR is a stack pointer into mapped memory. */
       const NSegment *next = VG_(am_next_nsegment)(seg, /*forward*/ False);
-      if (next == NULL || next->kind != SkResvn || seg->smode != SmUpper)
+      if (next == NULL || next->kind != SkResvn || next->smode != SmUpper)
          return True;
 
       /* OK; looks like a stack segment */