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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-c4d017f21328c269deba3c7acde873204fe595b5@git.kernel.org>
Date:	Sun, 29 May 2011 19:25:29 GMT
From:	tip-bot for Joe Perches <joe@...ches.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
	trivial@...nel.org, joe@...ches.com, tglx@...utronix.de,
	mingo@...e.hu
Subject: [tip:x86/cleanups] x86: Convert vmalloc()+memset() to vzalloc()

Commit-ID:  c4d017f21328c269deba3c7acde873204fe595b5
Gitweb:     http://git.kernel.org/tip/c4d017f21328c269deba3c7acde873204fe595b5
Author:     Joe Perches <joe@...ches.com>
AuthorDate: Sat, 28 May 2011 10:36:22 -0700
Committer:  Ingo Molnar <mingo@...e.hu>
CommitDate: Sat, 28 May 2011 19:53:57 +0200

x86: Convert vmalloc()+memset() to vzalloc()

Signed-off-by: Joe Perches <joe@...ches.com>
Cc: Jiri Kosina <trivial@...nel.org>
Link: http://lkml.kernel.org/r/10e35243fda0b8739c89ac32a7bdf348ec4752e1.1306603968.git.joe@perches.com
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
 arch/x86/mm/pageattr-test.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
index e1d1069..b008656 100644
--- a/arch/x86/mm/pageattr-test.c
+++ b/arch/x86/mm/pageattr-test.c
@@ -123,12 +123,11 @@ static int pageattr_test(void)
 	if (print)
 		printk(KERN_INFO "CPA self-test:\n");
 
-	bm = vmalloc((max_pfn_mapped + 7) / 8);
+	bm = vzalloc((max_pfn_mapped + 7) / 8);
 	if (!bm) {
 		printk(KERN_ERR "CPA Cannot vmalloc bitmap\n");
 		return -ENOMEM;
 	}
-	memset(bm, 0, (max_pfn_mapped + 7) / 8);
 
 	failed += print_split(&sa);
 	srandom32(100);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ