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: <1203754509934-git-send-email-xiyou.wangcong@gmail.com>
Date:	Sat, 23 Feb 2008 16:14:08 +0800
From:	WANG Cong <xiyou.wangcong@...il.com>
To:	Andrew Morton <akpm@...l.org>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	WANG Cong <xiyou.wangcong@...il.com>,
	Kyle McMartin <kyle@...isc-linux.org>,
	Matthew Wilcox <matthew@....cx>
Subject: [PATCH 05/16] parisc: use get_personality()

Use get_personality() macro instead of explicit reference
for parisc code.

Signed-off-by: WANG Cong <xiyou.wangcong@...il.com>
Cc: Kyle McMartin <kyle@...isc-linux.org>
Cc: Matthew Wilcox <matthew@....cx>

---
 arch/parisc/kernel/sys_parisc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/parisc/kernel/sys_parisc.c b/arch/parisc/kernel/sys_parisc.c
index 4f58921..1515ced 100644
--- a/arch/parisc/kernel/sys_parisc.c
+++ b/arch/parisc/kernel/sys_parisc.c
@@ -259,7 +259,7 @@ long parisc_personality(unsigned long personality)
 {
 	long err;
 
-	if (personality(current->personality) == PER_LINUX32
+	if (personality(get_personality()) == PER_LINUX32
 	    && personality == PER_LINUX)
 		personality = PER_LINUX32;
 
@@ -275,7 +275,7 @@ long parisc_newuname(struct new_utsname __user *name)
 	int err = sys_newuname(name);
 
 #ifdef CONFIG_COMPAT
-	if (!err && personality(current->personality) == PER_LINUX32) {
+	if (!err && personality(get_personality()) == PER_LINUX32) {
 		if (__put_user(0, name->machine + 6) ||
 		    __put_user(0, name->machine + 7))
 			err = -EFAULT;
-- 
1.5.3.8

--
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