aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 8429afea37bf..57f4038694d1 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -884,8 +884,10 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
884 spin_unlock_irq(&tsk->sighand->siglock); 884 spin_unlock_irq(&tsk->sighand->siglock);
885 } 885 }
886 read_unlock(&tasklist_lock); 886 read_unlock(&tasklist_lock);
887 audit_send_reply(NETLINK_CB(skb).pid, seq, AUDIT_TTY_GET, 0, 0, 887
888 &s, sizeof(s)); 888 if (!err)
889 audit_send_reply(NETLINK_CB(skb).pid, seq,
890 AUDIT_TTY_GET, 0, 0, &s, sizeof(s));
889 break; 891 break;
890 } 892 }
891 case AUDIT_TTY_SET: { 893 case AUDIT_TTY_SET: {