diff options
-rw-r--r-- | usr.bin/sndiod/dev_sioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev_sioctl.c b/usr.bin/sndiod/dev_sioctl.c index 907f49267b0..7df7dcee781 100644 --- a/usr.bin/sndiod/dev_sioctl.c +++ b/usr.bin/sndiod/dev_sioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_sioctl.c,v 1.8 2024/04/22 10:43:55 ratchov Exp $ */ +/* $OpenBSD: dev_sioctl.c,v 1.9 2024/05/24 15:00:15 ratchov Exp $ */ /* * Copyright (c) 2014-2020 Alexandre Ratchov <alex@caoua.org> * @@ -91,7 +91,8 @@ dev_sioctl_onval(void *arg, unsigned int addr, unsigned int val) } for (c = ctl_list; c != NULL; c = c->next) { - if (c->scope != CTL_HW || c->u.hw.addr != addr) + if (c->scope != CTL_HW || c->u.hw.dev != d || + c->u.hw.addr != addr) continue; if (log_level >= 2) { |