From 31a4174f104956a7f6f2b29c92bc2666ce164db9 Mon Sep 17 00:00:00 2001 From: Xiaotian Feng Date: Thu, 3 Mar 2011 18:08:24 +0800 Subject: [PATCH] --- yaml --- r: 235575 b: refs/heads/master c: 00bff392c81e4fb1901e5160fdd5afdb2546a6ab h: refs/heads/master i: 235573: be7548b5cd809657e3eaf68f15e5febcdca7a6fb 235571: aa23a0077d5892aae683c05ff6757927435a5f4b 235567: efd49dab1de4b3c7d7adfca79ff6696d9a2333aa v: v3 --- [refs] | 2 +- trunk/drivers/tty/tty_audit.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index fdbc5bf33c61..5ac784fd2ba3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b71dc8873427bb5bf0ce31b968c3f219a1d6d014 +refs/heads/master: 00bff392c81e4fb1901e5160fdd5afdb2546a6ab diff --git a/trunk/drivers/tty/tty_audit.c b/trunk/drivers/tty/tty_audit.c index f64582b0f623..7c5866920622 100644 --- a/trunk/drivers/tty/tty_audit.c +++ b/trunk/drivers/tty/tty_audit.c @@ -95,8 +95,10 @@ static void tty_audit_buf_push(struct task_struct *tsk, uid_t loginuid, { if (buf->valid == 0) return; - if (audit_enabled == 0) + if (audit_enabled == 0) { + buf->valid = 0; return; + } tty_audit_log("tty", tsk, loginuid, sessionid, buf->major, buf->minor, buf->data, buf->valid); buf->valid = 0;