[folded-merged] mm-sparse-make-sparse_init_one_section-void-and-remove-check-fix-2.patch removed from -mm tree

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

 



The patch titled
     Subject: mm/sparse.c: fix error path in sparse_add_one_section
has been removed from the -mm tree.  Its filename was
     mm-sparse-make-sparse_init_one_section-void-and-remove-check-fix-2.patch

This patch was dropped because it was folded into mm-sparse-make-sparse_init_one_section-void-and-remove-check.patch

------------------------------------------------------
From: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>
Subject: mm/sparse.c: fix error path in sparse_add_one_section

simplification suggested by Oscar

Link: http://lkml.kernel.org/r/20180706223358.742-1-ross.zwisler@xxxxxxxxxxxxxxx
Signed-off-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>
Cc: Oscar Salvador <osalvador@xxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/sparse.c |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

--- a/mm/sparse.c~mm-sparse-make-sparse_init_one_section-void-and-remove-check-fix-2
+++ a/mm/sparse.c
@@ -753,12 +753,9 @@ int __meminit sparse_add_one_section(str
 	 * plus, it does a kmalloc
 	 */
 	ret = sparse_index_init(section_nr, pgdat->node_id);
-	if (ret < 0) {
-		if (ret == -EEXIST)
-			ret = 0;
-		else
-			return ret;
-	}
+	if (ret < 0 && ret != -EEXIST)
+		return ret;
+	ret = 0;
 	memmap = kmalloc_section_memmap(section_nr, pgdat->node_id, altmap);
 	if (!memmap)
 		return -ENOMEM;
_

Patches currently in -mm which might be from ross.zwisler@xxxxxxxxxxxxxxx are

mm-sparse-make-sparse_init_one_section-void-and-remove-check.patch




[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