summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2023-12-09 22:12:04 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2023-12-09 22:12:04 +0000
commite10ffb6e92d81b25b2ed1bb14891a8b0638d4ea8 (patch)
treec38fac92fef6b291a9543c816ea131d57f9a99b8 /usr.bin/sndiod
parent580f115c0a8f4d8a7ee38f10582c9908704e90f4 (diff)
Fix wrong call to slot->ops->exit() causing server to abort.
ok kn@
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r--usr.bin/sndiod/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 97d1cb5d6ae..bd0ed8daa0c 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.106 2022/12/26 19:16:03 jmc Exp $ */
+/* $OpenBSD: dev.c,v 1.107 2023/12/09 22:12:03 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -1389,7 +1389,7 @@ dev_migrate(struct dev *odev)
if (s->opt == NULL || s->opt->dev != odev)
continue;
if (s->ops != NULL) {
- s->ops->exit(s);
+ s->ops->exit(s->arg);
s->ops = NULL;
}
}