From: ratchov Date: Sat, 9 Dec 2023 22:12:03 +0000 (+0000) Subject: Fix wrong call to slot->ops->exit() causing server to abort. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2da541025cd94fb554a86cfa7ad8bb8ae66a3377;p=openbsd Fix wrong call to slot->ops->exit() causing server to abort. ok kn@ --- 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 * @@ -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; } }