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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:22 +0000 (09:04 -0700)
commit174d58573117bc688e9481c8f7392bd1ddf24fcf
tree55ef380d3e2c58d0888a48ac810ef0ea6cb4ebd2
parenta92fdd54f75eae8e7d591070c83e146ab8eec2e3
x86, compat: Use test_thread_flag(TIF_IA32) in compat signal delivery

commit 0b91f45b23cb73ce11acdc3cf4c6efd4441e3b3e upstream.

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
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/ia32/ia32_signal.c