diff options
-rw-r--r-- | kernel/resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/resource.c b/kernel/resource.c index 8f0e3d0f4bff..91f430fd467e 100644 --- a/kernel/resource.c +++ b/kernel/resource.c | |||
@@ -287,7 +287,7 @@ int walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, | |||
287 | pfn = (res.start + PAGE_SIZE - 1) >> PAGE_SHIFT; | 287 | pfn = (res.start + PAGE_SIZE - 1) >> PAGE_SHIFT; |
288 | end_pfn = (res.end + 1) >> PAGE_SHIFT; | 288 | end_pfn = (res.end + 1) >> PAGE_SHIFT; |
289 | if (end_pfn > pfn) | 289 | if (end_pfn > pfn) |
290 | ret = (*func)(pfn, end_pfn - pfn, arg); | 290 | ret = (*func)(pfn, end_pfn - pfn, arg); |
291 | if (ret) | 291 | if (ret) |
292 | break; | 292 | break; |
293 | res.start = res.end + 1; | 293 | res.start = res.end + 1; |