diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 6e5de767bad1efb95202e21b0defd6cb4dd2dddd..aaaca8a13bbe57cd17f084af9bc29a497fac1e62 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -948,7 +948,7 @@ static int audit_log_pid_context(struct audit_context *context, pid_t pid, ab = audit_log_start(context, GFP_KERNEL, AUDIT_OBJ_PID); if (!ab) - return 1; + return rc; audit_log_format(ab, "opid=%d oauid=%d ouid=%d oses=%d", pid, auid, uid, sessionid);