[folded-merged] mm-fix-a-overflow-in-test_pages_in_a_zone-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-fix-a-overflow-in-test_pages_in_a_zone-fix
has been removed from the -mm tree.  Its filename was
     mm-fix-a-overflow-in-test_pages_in_a_zone-fix.patch

This patch was dropped because it was folded into mm-fix-a-overflow-in-test_pages_in_a_zone.patch

------------------------------------------------------
From: "Kani, Toshimitsu" <toshi.kani@xxxxxxx>
Subject: mm-fix-a-overflow-in-test_pages_in_a_zone-fix

remove assumption that end_pfn is aligned by MAX_ORDER_NR_PAGES

Signed-off-by: Toshi Kani <toshi.kani@xxxxxxx>
Cc: zhong jiang <zhongjiang@xxxxxxxxxx>
Cc: Vlastimil Babka <vbabka@xxxxxxx>
Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/memory_hotplug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/memory_hotplug.c~mm-fix-a-overflow-in-test_pages_in_a_zone-fix mm/memory_hotplug.c
--- a/mm/memory_hotplug.c~mm-fix-a-overflow-in-test_pages_in_a_zone-fix
+++ a/mm/memory_hotplug.c
@@ -1509,7 +1509,7 @@ int test_pages_in_a_zone(unsigned long s
 			while ((i < MAX_ORDER_NR_PAGES) &&
 				!pfn_valid_within(pfn + i))
 				i++;
-			if (i == MAX_ORDER_NR_PAGES)
+			if (i == MAX_ORDER_NR_PAGES || pfn + i >= end_pfn)
 				continue;
 			page = pfn_to_page(pfn + i);
 			if (zone && page_zone(page) != zone)
_

Patches currently in -mm which might be from toshi.kani@xxxxxxx are

mm-fix-a-overflow-in-test_pages_in_a_zone.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux