projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
161270f
)
x86, compat: Use test_thread_flag(TIF_IA32) in compat signal delivery
author
Suresh Siddha
<
[email protected]
>
Fri, 15 Jun 2012 01:07:15 +0000
(18:07 -0700)
committer
H. Peter Anvin
<
[email protected]
>
Fri, 15 Jun 2012 01:16:04 +0000
(18:16 -0700)
Signal delivery compat path may not have the 'TS_COMPAT' flag (that
flag indicates how we entered the kernel). So use
test_thread_flag(TIF_IA32) instead of is_ia32_task(): one of the
functions of TIF_IA32 is just what kind of signal frame we want.
Signed-off-by: Suresh Siddha <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Cc:
[email protected]
# v3.4
Signed-off-by: H. Peter Anvin <
[email protected]
>
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 daeca56211e39b13babd4504cb19e9797f6e7810..673ac9b63d6bf51ca36e2a0f18c4ca0d125d4fde 100644
(file)
--- a/
arch/x86/ia32/ia32_signal.c
+++ b/
arch/x86/ia32/ia32_signal.c
@@
-38,7
+38,7
@@
int copy_siginfo_to_user32(compat_siginfo_t __user *to, siginfo_t *from)
{
int err = 0;
- bool ia32 =
is_ia32_task(
);
+ bool ia32 =
test_thread_flag(TIF_IA32
);
if (!access_ok(VERIFY_WRITE, to, sizeof(compat_siginfo_t)))
return -EFAULT;