projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b61c5ed
)
audit: remove bogus tty name check
author
Alan Cox
<alan@linux.intel.com>
Tue, 16 Oct 2012 10:53:44 +0000
(11:53 +0100)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index
2f186ed
..
fc7376b
100644
(file)
--- 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)";