From: Alan Cox Date: Tue, 16 Oct 2012 10:53:44 +0000 (+0100) Subject: audit: remove bogus tty name check X-Git-Tag: v3.8-rc1~177^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ae763cd7e88a6bc552a6615ba6c1dcaa4828cbf;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git audit: remove bogus tty name check tty name is an array not a pointer Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 2f186ed..fc7376b 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) 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)";