artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
465c5d1
)
sndiod: Fix confusion between the slot and ctlslot pointers
author
ratchov
<ratchov@openbsd.org>
Tue, 2 Apr 2024 05:21:32 +0000
(
05:21
+0000)
committer
ratchov
<ratchov@openbsd.org>
Tue, 2 Apr 2024 05:21:32 +0000
(
05:21
+0000)
Fixes crash when the device is disconnected and the clients are not
migrated to another device.
usr.bin/sndiod/dev.c
patch
|
blob
|
history
diff --git
a/usr.bin/sndiod/dev.c
b/usr.bin/sndiod/dev.c
index
bd0ed8d
..
235b6d5
100644
(file)
--- a/
usr.bin/sndiod/dev.c
+++ b/
usr.bin/sndiod/dev.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dev.c,v 1.10
7 2023/12/09 22:12:03
ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.10
8 2024/04/02 05:21:32
ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@
-1108,7
+1108,7
@@
dev_abort(struct dev *d)
if (c->ops == NULL)
continue;
if (c->opt == o) {
- c->ops->exit(
s
->arg);
+ c->ops->exit(
c
->arg);
c->ops = NULL;
}
}