lkml.org 
[lkml]   [2008]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 16/16] kernel: use get_personality()
Date
Use get_personality() macro instead of explicit reference.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>

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

diff --git a/kernel/exec_domain.c b/kernel/exec_domain.c
index a9e6bad..056ba23 100644
--- a/kernel/exec_domain.c
+++ b/kernel/exec_domain.c
@@ -192,11 +192,11 @@ get_exec_domain_list(char *page)
asmlinkage long
sys_personality(u_long personality)
{
- u_long old = current->personality;
+ u_long old = get_personality();

if (personality != 0xffffffff) {
set_personality(personality);
- if (current->personality != personality)
+ if (get_personality() != personality)
return -EINVAL;
}

--
1.5.3.8


\
 
 \ /
  Last update: 2008-02-23 09:41    [W:0.042 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site