[S390] personality: fix personality loss on execve
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 23 Jan 2009 15:40:23 +0000 (16:40 +0100)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 23 Jan 2009 15:40:28 +0000 (16:40 +0100)
commit03e4c49f847f23c62900424f65a62f76de5a7151
tree4b08234e317091e2bab8998cc256f60e303e3c0a
parentf3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b
[S390] personality: fix personality loss on execve

Use the personality() macro to mask out all bits that are not
relevant for the personality type.
The personality field contains bits for other things as well,
so without masking out the not relevalent bits the comparison
won't do what is expected.

Reported-by: Andreas Krebbel <krebbel@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/include/asm/elf.h