From 69f7c96a332f1c8bbdf49c65b3cb566c751caafe Mon Sep 17 00:00:00 2001 From: Will Sowerbutts Date: Wed, 25 Feb 2015 00:17:03 +0000 Subject: [PATCH] Kernel: Minor bug fix for tty_open --- Kernel/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/tty.c b/Kernel/tty.c index c0958684..c0817cc7 100644 --- a/Kernel/tty.c +++ b/Kernel/tty.c @@ -154,7 +154,7 @@ int tty_open(uint8_t minor, uint16_t flag) and inode somehow ??? */ if (!minor) minor = udata.u_ptab->p_tty; - if (minor < 1 || minor > NUM_DEV_TTY + 1) { + if (minor < 1 || minor > NUM_DEV_TTY) { udata.u_error = ENODEV; return (-1); } -- 2.34.1