lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1452339024-3416-1-git-send-email-nimisolo@gmail.com>
Date:	Sat,  9 Jan 2016 06:30:23 -0500
From:	nimisolo <nimisolo@...il.com>
To:	akpm@...ux-foundation.org, kuleshovmail@...il.com,
	penberg@...nel.org, tony.luck@...el.com, mgorman@...e.de,
	tangchen@...fujitsu.com, weiyang@...ux.vnet.ibm.com, holt@....com
Cc:	linux-mm@...ck.org, linux-kernel@...r.kernel.org,
	nimisolo <nimisolo@...il.com>
Subject: [PATCH] mm/memblock: If nr_new is 0 just return

If nr_new is 0 which means there's no region would be added,
so just return to the caller.

Signed-off-by: nimisolo <nimisolo@...il.com>
---
 mm/memblock.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mm/memblock.c b/mm/memblock.c
index d300f13..9a30077 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -588,6 +588,9 @@ repeat:
 					       nid, flags);
 	}
 
+	if (!nr_new)
+		return 0;
+
 	/*
 	 * If this was the first round, resize array and repeat for actual
 	 * insertions; otherwise, merge and return.
-- 
2.5.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ