projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e44f12
)
[PATCH] x86-64: Fix off by one in pfn_valid
author
Jim Paradis
<jparadis@redhat.com>
Mon, 12 Sep 2005 16:49:24 +0000
(18:49 +0200)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 12 Sep 2005 17:50:55 +0000
(10:50 -0700)
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>
include/asm-x86_64/mmzone.h
patch
|
blob
|
history
diff --git
a/include/asm-x86_64/mmzone.h
b/include/asm-x86_64/mmzone.h
index 768413751b34288c0eb6b1ae5b56f4c5eecb3d13..2ef43dac6c283ef7df8c4de241970c524e550893 100644
(file)
--- 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) \