]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86, compat: Use test_thread_flag(TIF_IA32) in compat signal delivery
authorSuresh Siddha <suresh.b.siddha@intel.com>
Fri, 15 Jun 2012 01:07:15 +0000 (18:07 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 15 Jun 2012 01:16:04 +0000 (18:16 -0700)
commit0b91f45b23cb73ce11acdc3cf4c6efd4441e3b3e
tree0075c0aa7b7228d2ce5ab4d44af378a6500fc875
parent161270fc1f9ddfc17154e0d49291472a9cdef7db
x86, compat: Use test_thread_flag(TIF_IA32) in compat signal delivery

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 <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1339722435.3475.57.camel@sbsiddha-desk.sc.intel.com
Cc: stable@kernel.org # v3.4
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/ia32/ia32_signal.c