Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff67b597 authored by Tony Luck's avatar Tony Luck
Browse files

[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: default avatarTony Luck <tony.luck@intel.com>
parent 288ceb8f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */