summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
authorPeter Hurley2013-06-15 13:04:46 +0200
committerGreg Kroah-Hartman2013-07-24 01:38:34 +0200
commit137084bbaddf4f6dde948ef3a14e18ba0754cc0d (patch)
treecbb5df7fd5b9950ca9f7c8a011199e5a07bdb727 /drivers/tty/tty_io.c
parentLinux 3.11-rc2 (diff)
downloadkernel-qcow2-linux-137084bbaddf4f6dde948ef3a14e18ba0754cc0d.tar.gz
kernel-qcow2-linux-137084bbaddf4f6dde948ef3a14e18ba0754cc0d.tar.xz
kernel-qcow2-linux-137084bbaddf4f6dde948ef3a14e18ba0754cc0d.zip
tty: Fix tty_ldisc_lock name collision
The file scope spinlock identifier, tty_ldisc_lock, will collide with the file scope lock function tty_ldisc_lock() so rename it. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r--drivers/tty/tty_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 366af832794b..fa80af3656a3 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -603,7 +603,7 @@ static int tty_signal_session_leader(struct tty_struct *tty, int exit_session)
* BTM
* redirect lock for undoing redirection
* file list lock for manipulating list of ttys
- * tty_ldisc_lock from called functions
+ * tty_ldiscs_lock from called functions
* termios_mutex resetting termios data
* tasklist_lock to walk task list for hangup event
* ->siglock to protect ->signal/->sighand
@@ -2202,7 +2202,7 @@ static int tty_fasync(int fd, struct file *filp, int on)
* FIXME: does not honour flow control ??
*
* Locking:
- * Called functions take tty_ldisc_lock
+ * Called functions take tty_ldiscs_lock
* current->signal->tty check is safe without locks
*
* FIXME: may race normal receive processing