[parisc-linux] Re: [parisc-linux-cvs] linux-2.6 carlos

Carlos O'Donell carlos at baldric.uwo.ca
Tue Feb 3 16:07:35 MST 2004


On Tue, Feb 03, 2004 at 04:04:10PM -0700, Carlos O'Donell wrote:
> CVSROOT:	/var/cvs
> Module name:	linux-2.6
> Changes by:	carlos	04/02/03 16:04:10
> 
> Modified files:
> 	include/linux  : compat.h 
> 
> Log message:
> Personality is a bitmask, so we use personality() to extract just the base personality before checking for PER_LINUX32 e.g. A compat task
> 

This booboo would have bitten eventually.

c.

Index: include/linux/compat.h
===================================================================
RCS file: /var/cvs/linux-2.6/include/linux/compat.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- include/linux/compat.h      28 Jan 2004 05:12:46 -0000      1.7
+++ include/linux/compat.h      3 Feb 2004 23:04:09 -0000       1.8
@@ -23,7 +23,7 @@
 
 /* Non-native task requiring compat */
 #ifndef HAVE_ARCH_IS_COMPAT_TASK
-#define is_compat_task(x) (x->personality == PER_LINUX32)
+#define is_compat_task(x) (personality(x->personality) == PER_LINUX32)
 #endif
 
 struct compat_itimerspec { 



More information about the parisc-linux mailing list