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 10:50:55 -0700 |
commit | fb048927ad93420b6dd2eddcdde71ea7b6ff95e4 (patch) | |
tree | 68293cf33f2db0d81406c435695a364023a7d766 | |
parent | 6e44f12ba64a58f25f8e6f35aa4c175f613001be (diff) | |
download | op-kernel-dev-fb048927ad93420b6dd2eddcdde71ea7b6ff95e4.zip op-kernel-dev-fb048927ad93420b6dd2eddcdde71ea7b6ff95e4.tar.gz |
[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>
-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 7684137..2ef43da 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) \ |