mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't open if we're going away.
This commit is contained in:
parent
06f40e9610
commit
793bcd17d5
1 changed files with 4 additions and 0 deletions
|
|
@ -137,6 +137,10 @@ uart_tty_open(struct tty *tp, struct cdev *dev)
|
|||
struct uart_softc *sc;
|
||||
|
||||
sc = tp->t_sc;
|
||||
|
||||
if (sc == NULL || sc->sc_leaving)
|
||||
return (ENXIO);
|
||||
|
||||
sc->sc_opened = 1;
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue