]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
audit: remove bogus tty name check
authorAlan Cox <alan@linux.intel.com>
Tue, 16 Oct 2012 10:53:44 +0000 (11:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 18:34:51 +0000 (11:34 -0700)
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>
kernel/auditsc.c

index 2f186ed80c40589ef9662fb400c82c1a95854f6a..fc7376bf86ea8133e44677e6ede62fc9581dc6e6 100644 (file)
@@ -1159,7 +1159,7 @@ void audit_log_task_info(struct audit_buffer *ab, struct task_struct *tsk)
        cred = current_cred();
 
        spin_lock_irq(&tsk->sighand->siglock);
-       if (tsk->signal && tsk->signal->tty && tsk->signal->tty->name)
+       if (tsk->signal && tsk->signal->tty)
                tty = tsk->signal->tty->name;
        else
                tty = "(none)";