summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/shared/console.c')
-rw-r--r--c/src/lib/libbsp/shared/console.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c
index e294fc1714..c477aae4eb 100644
--- a/c/src/lib/libbsp/shared/console.c
+++ b/c/src/lib/libbsp/shared/console.c
@@ -127,6 +127,10 @@ rtems_device_driver console_close(
)
{
rtems_libio_open_close_args_t *args = arg;
+ struct rtems_termios_tty *current_tty;
+
+ /* Get tty pointeur from the Console_Port_Data */
+ current_tty = Console_Port_Data[minor].termios_data;
/* Get the tty refcount to determine if we need to do deviceStopRemoteTx.
* Stop only if it's the last one opened.