Call ttyld_close() in nmdmclose() to ensure that nmdm(4)
closes line discipline installed onto /dev/nmdmX device. Reviewed by: julian Approved by: re (hrs) MFC after: 3 days
This commit is contained in:
parent
d6fe462ac1
commit
acbfc85b17
@ -401,8 +401,13 @@ nmdmmodem(struct tty *tp, int sigon, int sigoff)
|
||||
static int
|
||||
nmdmclose(struct cdev *dev, int flag, int mode, struct thread *td)
|
||||
{
|
||||
struct tty *tp = dev->si_tty;
|
||||
int error;
|
||||
|
||||
return (tty_close(dev->si_tty));
|
||||
error = ttyld_close(tp, flag);
|
||||
(void) tty_close(dev->si_tty);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user