Commit f1327bf1 authored by Roel Kluin's avatar Roel Kluin Committed by Linus Torvalds
Browse files

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: default avatarRoel Kluin <>
Cc: Wu Fengguang <>
Cc: Randy Dunlap <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3428838d
......@@ -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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment