From: Roel Kluin Date: Tue, 15 Dec 2009 01:57:49 +0000 (-0800) Subject: page-types: unsigned cannot be less than 0 in add_page() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1327bf18c8737aeb85226f02f102dfa065fddde;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Wu Fengguang Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) {