From 8370bf70c786bf5f8c3e53fb889a14ffef8cff1d Mon Sep 17 00:00:00 2001 From: ratchov Date: Tue, 27 Jun 2023 09:28:08 +0000 Subject: [PATCH] Return error if the USB request to get the sample rate fails. found by mlarkin --- sys/dev/usb/uaudio.c | 4 ++-- 1 file 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 * @@ -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) { -- 2.20.1