From e5525df67cc959b21b0698dc81ee0953f4f5082e Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 30 May 2015 13:44:19 +0100 Subject: [PATCH] nc100: fix tty handling on close --- Kernel/platform-nc100/devtty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/platform-nc100/devtty.c b/Kernel/platform-nc100/devtty.c index 11a46094..ec1ba1cf 100644 --- a/Kernel/platform-nc100/devtty.c +++ b/Kernel/platform-nc100/devtty.c @@ -67,7 +67,7 @@ int nc100_tty_open(uint8_t minor, uint16_t flag) int nc100_tty_close(uint8_t minor) { tty_close(minor); - if (tty[minor].users) + if (ttydata[minor].users) return 0; if (minor == 2) { #ifdef CONFIG_NC200 -- 2.34.1