diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2023-06-27 09:28:09 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2023-06-27 09:28:09 +0000 |
commit | 461e4a654b47cac2f78e55d6144de1d9bf4a49b5 (patch) | |
tree | fc6ee401fd684779ef6076822c08ece5c1de44a8 /sys | |
parent | 8490412bbf3d7766beccf7bfb067ac47a284c698 (diff) |
Return error if the USB request to get the sample rate fails.
found by mlarkin
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 96ab39d23f1..d8e300a52c9 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.172 2022/10/26 20:19:09 kn Exp $ */ +/* $OpenBSD: uaudio.c,v 1.173 2023/06/27 09:28:08 ratchov Exp $ */ /* * Copyright (c) 2018 Alexandre Ratchov <alex@caoua.org> * @@ -2216,7 +2216,7 @@ uaudio_process_ac(struct uaudio_softc *sc, struct uaudio_blob *p, int ifnum) &u->rates)) { printf("%s: failed to read clock rates\n", DEVNAME(sc)); - return 1; + return 0; } #ifdef UAUDIO_DEBUG if (uaudio_debug) { |