aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-10-16 06:53:44 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-24 14:34:51 -0400
commit8ae763cd7e88a6bc552a6615ba6c1dcaa4828cbf (patch)
tree9e0c9f4f33d350671dd09b9ad59ec89bf7facf7a /kernel/auditsc.c
parentb61c5ed57195ec97006d8d3ede1f583f6618b79e (diff)
audit: remove bogus tty name check
tty name is an array not a pointer Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 2f186ed80c40..fc7376bf86ea 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -1159,7 +1159,7 @@ void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk)
1159 cred = current_cred(); 1159 cred = current_cred();
1160 1160
1161 spin_lock_irq(&tsk->sighand->siglock); 1161 spin_lock_irq(&tsk->sighand->siglock);
1162 if (tsk->signal && tsk->signal->tty && tsk->signal->tty->name) 1162 if (tsk->signal && tsk->signal->tty)
1163 tty = tsk->signal->tty->name; 1163 tty = tsk->signal->tty->name;
1164 else 1164 else
1165 tty = "(none)"; 1165 tty = "(none)";