projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
serial: samsung: fix DMA mode enter condition for small FIFO sizes
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
tty
/
pty.c
diff --git
a/drivers/tty/pty.c
b/drivers/tty/pty.c
index 4d5e8409769c3cc412ba5d428e0f179b4b44fdad..4d5937c185c17bda6d506f00232b3f3598f28b95 100644
(file)
--- a/
drivers/tty/pty.c
+++ b/
drivers/tty/pty.c
@@
-26,6
+26,12
@@
#include <linux/mutex.h>
#include <linux/poll.h>
#include <linux/mutex.h>
#include <linux/poll.h>
+#undef TTY_DEBUG_HANGUP
+#ifdef TTY_DEBUG_HANGUP
+# define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args)
+#else
+# define tty_debug_hangup(tty, f, args...) do {} while (0)
+#endif
#ifdef CONFIG_UNIX98_PTYS
static struct tty_driver *ptm_driver;
#ifdef CONFIG_UNIX98_PTYS
static struct tty_driver *ptm_driver;
@@
-779,6
+785,8
@@
static int ptmx_open(struct inode *inode, struct file *filp)
if (retval)
goto err_release;
if (retval)
goto err_release;
+ tty_debug_hangup(tty, "(tty count=%d)\n", tty->count);
+
tty_unlock(tty);
return 0;
err_release:
tty_unlock(tty);
return 0;
err_release: