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: <a9c68da895ef0ac4d3b2232da52fb44fdbe797e4.1457967161.git.geliangtang@163.com>
Date:	Mon, 14 Mar 2016 22:54:48 +0800
From:	Geliang Tang <geliangtang@....com>
To:	Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...nel.org>,
	Peter Zijlstra <peterz@...radead.org>,
	Oleg Nesterov <oleg@...hat.com>,
	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc:	Geliang Tang <geliangtang@....com>,
	Rasmus Villemoes <linux@...musvillemoes.dk>,
	linux-kernel@...r.kernel.org
Subject: [PATCH] kernel/cpu.c: use zalloc_cpumask_var() in alloc_frozen_cpus()

Use zalloc_cpumask_var() instead of alloc_cpumask_var() with flag
GFP_ZERO.

Signed-off-by: Geliang Tang <geliangtang@....com>
---
 kernel/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cpu.c b/kernel/cpu.c
index bcee286..74cd8d3 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1101,7 +1101,7 @@ out:
 
 static int __init alloc_frozen_cpus(void)
 {
-	if (!alloc_cpumask_var(&frozen_cpus, GFP_KERNEL|__GFP_ZERO))
+	if (!zalloc_cpumask_var(&frozen_cpus, GFP_KERNEL))
 		return -ENOMEM;
 	return 0;
 }
-- 
2.5.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ