Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235575
b: refs/heads/master
c: 00bff39
h: refs/heads/master
i:
  235573: be7548b
  235571: aa23a00
  235567: efd49da
v: v3
  • Loading branch information
Xiaotian Feng authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent 55e3d88 commit 31a4174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b71dc8873427bb5bf0ce31b968c3f219a1d6d014
refs/heads/master: 00bff392c81e4fb1901e5160fdd5afdb2546a6ab
4 changes: 3 additions & 1 deletion trunk/drivers/tty/tty_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 31a4174

Please sign in to comment.