From: Alan Cox Date: Sat, 30 May 2015 12:44:19 +0000 (+0100) Subject: nc100: fix tty handling on close X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e5525df67cc959b21b0698dc81ee0953f4f5082e;p=FUZIX.git nc100: fix tty handling on close --- 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