tree 0a587cec3a6bd4fdd53fcfb75f87bc45da5d1a7f
parent 288ceb8f142249109fd2e9f1bf0492bd6ff6d892
author Tony Luck <[EMAIL PROTECTED]> Wed, 31 Aug 2005 04:59:24 -0700
committer Tony Luck <[EMAIL PROTECTED]> Wed, 31 Aug 2005 04:59:24 -0700

[IA64] Low byte of current->personality is not a bitmask.

Peter Staubach pointed out that it is not correct to check
current->personality & PER_LINUX32 (this will have false
hits on several other personality values).

Signed-off-by: Tony Luck <[EMAIL PROTECTED]>

 include/asm-ia64/fcntl.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/asm-ia64/fcntl.h b/include/asm-ia64/fcntl.h
--- a/include/asm-ia64/fcntl.h
+++ b/include/asm-ia64/fcntl.h
@@ -81,6 +81,7 @@ struct flock {
 
 #define F_LINUX_SPECIFIC_BASE  1024
 
-#define force_o_largefile() ( ! (current->personality & PER_LINUX32) )
+#define force_o_largefile()    \
+               (personality(current->personality) != PER_LINUX32)
 
 #endif /* _ASM_IA64_FCNTL_H */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to