Russell King d8b295f290 [PATCH] Fix missing parens in set_personality()
If you call set_personality() with an expression such as:

	set_personality(foo ? PERS_FOO1 : PERS_FOO2);

then this evaluates to:

	((current->personality == foo ? PERS_FOO1 : PERS_FOO2) ? ...

which is obviously not the intended result.  Add the missing parents
to ensure this gets evaluated as expected:

	((current->personality == (foo ? PERS_FOO1 : PERS_FOO2)) ? ...

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-11-13 07:40:42 -08:00
..
2006-11-06 14:07:15 +01:00
2006-11-01 09:11:00 -08:00
2006-11-13 07:40:42 -08:00
2006-10-15 11:00:58 -07:00
2006-10-18 18:30:51 +02:00
2006-10-31 08:07:00 -08:00
2006-11-05 14:11:26 -08:00
2006-10-22 10:56:24 +02:00