diff options
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 089d61a23952..48881394fbd4 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2121,9 +2121,7 @@ static inline void flush_unauthorized_files(struct files_struct *files) | |||
2121 | long j = -1; | 2121 | long j = -1; |
2122 | int drop_tty = 0; | 2122 | int drop_tty = 0; |
2123 | 2123 | ||
2124 | mutex_lock(&tty_mutex); | ||
2125 | tty = get_current_tty(); | 2124 | tty = get_current_tty(); |
2126 | mutex_unlock(&tty_mutex); | ||
2127 | if (tty) { | 2125 | if (tty) { |
2128 | file_list_lock(); | 2126 | file_list_lock(); |
2129 | file = list_entry(tty->tty_files.next, typeof(*file), f_u.fu_list); | 2127 | file = list_entry(tty->tty_files.next, typeof(*file), f_u.fu_list); |