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 14/16] frv: use get_personality()
Date
Use get_personality() macro instead of explicit reference
for frv code.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: David Howells <dhowells@redhat.com>

---
include/asm-frv/page.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-frv/page.h b/include/asm-frv/page.h
index c2c1e89..6c5c4db 100644
--- a/include/asm-frv/page.h
+++ b/include/asm-frv/page.h
@@ -69,7 +69,7 @@ extern unsigned long max_pfn;
#ifdef CONFIG_MMU
#define VM_DATA_DEFAULT_FLAGS \
(VM_READ | VM_WRITE | \
- ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
+ ((get_personality() & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
#endif

--
1.5.3.8


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