x32: Fix stupid ia32/x32 inversion in the siginfo format

Fix a stray ! which flipped the sense if we were generating a signal
frame for ia32 vs. x32.

Introduced in:

e7084fd5 x32: Switch to a 64-bit clock_t

Reported-by: H. J. Lu <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Cc: Gregory M. Lueck <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
This commit is contained in:
H. Peter Anvin committed 2012-03-13 22:44:41 -07:00
1 parent 55283e2537
commit bb6fa8b275
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@
int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from)
{
int err = 0;
bool ia32 = !is_ia32_task();
bool ia32 = is_ia32_task();
if (!access_ok(VERIFY_WRITE, to, sizeof(compat_siginfo_t)))
return -EFAULT;