summaryrefslogtreecommitdiffstats
path: root/Documentation/vm
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-12-15 02:57:49 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:11 +0100
commitf1327bf18c8737aeb85226f02f102dfa065fddde (patch)
tree441b938316c4de34c34784463836ea52e455c465 /Documentation/vm
parentpage-types: constify read only arrays (diff)
downloadlinux-f1327bf18c8737aeb85226f02f102dfa065fddde.tar.xz
linux-f1327bf18c8737aeb85226f02f102dfa065fddde.zip
page-types: unsigned cannot be less than 0 in add_page()
If not signed, testing of the read() return value in this function will not work. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: Wu Fengguang <fengguang.wu@intel.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/vm')
-rw-r--r--Documentation/vm/page-types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/vm/page-types.c b/Documentation/vm/page-types.c
index 59a4614f4b90..2279b616a7ac 100644
--- a/Documentation/vm/page-types.c
+++ b/Documentation/vm/page-types.c
@@ -560,7 +560,7 @@ static void walk_pfn(unsigned long voffset,
{
uint64_t buf[KPAGEFLAGS_BATCH];
unsigned long batch;
- unsigned long pages;
+ long pages;
unsigned long i;
while (count) {