projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55283e2
)
x32: Fix stupid ia32/x32 inversion in the siginfo format
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 14 Mar 2012 05:44:41 +0000
(22:44 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 14 Mar 2012 05:44:41 +0000
(22:44 -0700)
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 <hjl.tools@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Gregory M. Lueck <gregory.m.lueck@intel.com>
Link:
http://lkml.kernel.org/r/1329696488-16970-1-git-send-email-hpa@zytor.com
arch/x86/ia32/ia32_signal.c
patch
|
blob
|
history
diff --git
a/arch/x86/ia32/ia32_signal.c
b/arch/x86/ia32/ia32_signal.c
index bc09ed2a8b973ec748d6a885ab80f0392d29ba70..ef026aa19d639808eaeee3b45bdec7dcb7048a49 100644
(file)
--- a/
arch/x86/ia32/ia32_signal.c
+++ b/
arch/x86/ia32/ia32_signal.c
@@
-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;