tty: extra hang up checks

This commit is contained in:
Matheus
2025-12-25 20:20:34 -03:00
parent 91a5266d29
commit a9dee251c9
6 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -266,7 +266,7 @@ static uacpi_iteration_decision init_com(void *, uacpi_namespace_node *node, uns
char tty_name[10];
snprintf(tty_name, 10, "com%d", pc_com->id);
pc_com->tty = tty_create(tty_name, write_tty, NULL, termios_callback, pc_com);
pc_com->tty = tty_create(tty_name, write_tty, NULL, termios_callback, NULL, pc_com);
if (pc_com->tty == NULL) {
printf("%s: failed to create tty\n", tty_name);
return UACPI_ITERATION_DECISION_NEXT_PEER;