[IA64] fix ia64 syscall auditing
[sfrench/cifs-2.6.git] / arch / ia64 / kernel / signal.c
index 6891d86937d92be4038cac575f7e9b153bfe1503..499b7e5317cf4f5ac3564ccf55bfdc5dc2829da5 100644 (file)
@@ -224,7 +224,8 @@ ia64_rt_sigreturn (struct sigscratch *scr)
         * could be corrupted.
         */
        retval = (long) &ia64_leave_kernel;
-       if (test_thread_flag(TIF_SYSCALL_TRACE))
+       if (test_thread_flag(TIF_SYSCALL_TRACE)
+           || test_thread_flag(TIF_SYSCALL_AUDIT))
                /*
                 * strace expects to be notified after sigreturn returns even though the
                 * context to which we return may not be in the middle of a syscall.