projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index 2f186ed80c40589ef9662fb400c82c1a95854f6a..fc7376bf86ea8133e44677e6ede62fc9581dc6e6 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)";