[PATCH] tty: fix routine name in ptmx_open()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hiroshi Shimamoto
Date: Monday, April 14, 2008 - 5:55 pm

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

At ptmx_open(), the 2nd parameter for check_tty_count() should
be "ptmx_open".

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 drivers/char/tty_io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 613ec81..546217d 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -2774,7 +2774,7 @@ static int ptmx_open(struct inode *inode, struct file *filp)
 	if (devpts_pty_new(tty->link))
 		goto out1;
 
-	check_tty_count(tty, "tty_open");
+	check_tty_count(tty, "ptmx_open");
 	retval = ptm_driver->open(tty, filp);
 	if (!retval) {
 		tty_audit_opening();
-- 
1.5.4.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] tty: fix routine name in ptmx_open(), Hiroshi Shimamoto, (Mon Apr 14, 5:55 pm)
Re: [PATCH] tty: fix routine name in ptmx_open(), Alan Cox, (Tue Apr 15, 2:58 am)
Re: [PATCH] tty: fix routine name in ptmx_open(), Andrew Morton, (Tue Apr 15, 3:01 pm)