diff options
author | Jim Paradis <jparadis@redhat.com> | 2005-09-12 18:49:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 19:50:55 +0200 |
commit | fb048927ad93420b6dd2eddcdde71ea7b6ff95e4 (patch) | |
tree | 68293cf33f2db0d81406c435695a364023a7d766 /include | |
parent | [PATCH] i386: add memory clobbers to syscall macros (diff) | |
download | linux-fb048927ad93420b6dd2eddcdde71ea7b6ff95e4.tar.xz linux-fb048927ad93420b6dd2eddcdde71ea7b6ff95e4.zip |
[PATCH] x86-64: Fix off by one in pfn_valid
When I gave proposed the fix to pfn_valid() for RHEL4, Stephen Tweedie's
sharp eyes caught this:
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86_64/mmzone.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86_64/mmzone.h b/include/asm-x86_64/mmzone.h index 768413751b34..2ef43dac6c28 100644 --- a/include/asm-x86_64/mmzone.h +++ b/include/asm-x86_64/mmzone.h @@ -54,7 +54,7 @@ static inline __attribute__((pure)) int phys_to_nid(unsigned long addr) #define pfn_valid(pfn) ((pfn) >= num_physpages ? 0 : \ ({ u8 nid__ = pfn_to_nid(pfn); \ - nid__ != 0xff && (pfn) >= node_start_pfn(nid__) && (pfn) <= node_end_pfn(nid__); })) + nid__ != 0xff && (pfn) >= node_start_pfn(nid__) && (pfn) < node_end_pfn(nid__); })) #endif #define local_mapnr(kvaddr) \ |