diff options
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r-- | mm/memory_hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index b81a367b9f39..9597eec8239d 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -1801,7 +1801,7 @@ int __ref remove_memory(int nid, u64 start, u64 size) | |||
1801 | int retry = 1; | 1801 | int retry = 1; |
1802 | 1802 | ||
1803 | start_pfn = PFN_DOWN(start); | 1803 | start_pfn = PFN_DOWN(start); |
1804 | end_pfn = start_pfn + PFN_DOWN(size); | 1804 | end_pfn = PFN_UP(start + size - 1); |
1805 | 1805 | ||
1806 | /* | 1806 | /* |
1807 | * When CONFIG_MEMCG is on, one memory block may be used by other | 1807 | * When CONFIG_MEMCG is on, one memory block may be used by other |