sched: Sanitize irq accounting madness
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / auditsc.c
index 7aef2f4..3b29605 100644 (file)
@@ -459,7 +459,7 @@ static int audit_filter_rules(struct task_struct *tsk,
                case AUDIT_PPID:
                        if (ctx) {
                                if (!ctx->ppid)
-                                       ctx->ppid = sys_getppid();
+                                       ctx->ppid = task_ppid_nr(tsk);
                                result = audit_comparator(ctx->ppid, f->op, f->val);
                        }
                        break;