From 2da541025cd94fb554a86cfa7ad8bb8ae66a3377 Mon Sep 17 00:00:00 2001 From: ratchov Date: Sat, 9 Dec 2023 22:12:03 +0000 Subject: [PATCH] Fix wrong call to slot->ops->exit() causing server to abort. ok kn@ --- usr.bin/sndiod/dev.c | 4 ++-- 1 file 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 * @@ -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; } } -- 2.20.1