page-types: unsigned cannot be less than 0 in add_page()
authorRoel Kluin <[email protected]>
Tue, 15 Dec 2009 01:57:49 +0000 (17:57 -0800)
committerLinus Torvalds <[email protected]>
Tue, 15 Dec 2009 16:53:11 +0000 (08:53 -0800)
If not signed, testing of the read() return value in this function
will not work.

Signed-off-by: Roel Kluin <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/vm/page-types.c

index 59a4614f4b90398a46016774541cfc1bb1b14353..2279b616a7ac3da9ee804fdce5c2d52e2c93ab97 100644 (file)
@@ -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) {