diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-14 20:57:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:11 -0500 |
commit | f1327bf18c8737aeb85226f02f102dfa065fddde (patch) | |
tree | 441b938316c4de34c34784463836ea52e455c465 /Documentation/vm | |
parent | 3428838d8e88fb766143c913cf3e777b000f8e07 (diff) |
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.c | 2 |
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, | |||
560 | { | 560 | { |
561 | uint64_t buf[KPAGEFLAGS_BATCH]; | 561 | uint64_t buf[KPAGEFLAGS_BATCH]; |
562 | unsigned long batch; | 562 | unsigned long batch; |
563 | unsigned long pages; | 563 | long pages; |
564 | unsigned long i; | 564 | unsigned long i; |
565 | 565 | ||
566 | while (count) { | 566 | while (count) { |