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;