summaryrefslogtreecommitdiffstats
path: root/sys/dev/nmdm/nmdm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/nmdm/nmdm.c')
-rw-r--r--sys/dev/nmdm/nmdm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c
index 31b1805..110553a 100644
--- a/sys/dev/nmdm/nmdm.c
+++ b/sys/dev/nmdm/nmdm.c
@@ -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;
+
+ error = ttyld_close(tp, flag);
+ (void) tty_close(dev->si_tty);
- return (tty_close(dev->si_tty));
+ return (error);
}
static void
OpenPOWER on IntegriCloud