aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/tty_audit.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/tty_audit.c b/drivers/tty/tty_audit.c
index a03a75163f02..a4fdce74f883 100644
--- a/drivers/tty/tty_audit.c
+++ b/drivers/tty/tty_audit.c
@@ -111,12 +111,9 @@ static void tty_audit_buf_push(struct tty_audit_buf *buf)
111void tty_audit_exit(void) 111void tty_audit_exit(void)
112{ 112{
113 struct tty_audit_buf *buf; 113 struct tty_audit_buf *buf;
114 unsigned long flags;
115 114
116 spin_lock_irqsave(&current->sighand->siglock, flags);
117 buf = current->signal->tty_audit_buf; 115 buf = current->signal->tty_audit_buf;
118 current->signal->tty_audit_buf = NULL; 116 current->signal->tty_audit_buf = NULL;
119 spin_unlock_irqrestore(&current->sighand->siglock, flags);
120 if (!buf) 117 if (!buf)
121 return; 118 return;
122 119