Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2026 18:19:22 +0000
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8a7ab3ed22d9 - main - uvideo: Return actual mtx_sleep error in dqbuf
Message-ID:  <6a63acaa.1c364.4ab0b2c0@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=8a7ab3ed22d9d6b49c5c4799c1468017d691b343

commit 8a7ab3ed22d9d6b49c5c4799c1468017d691b343
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-07-21 18:01:53 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-07-24 17:34:12 +0000

    uvideo: Return actual mtx_sleep error in dqbuf
    
    Don't coerce errors to EINVAL, which isn't correct for mtx_sleep's
    failure cases.
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/usb/video/uvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/video/uvideo.c b/sys/dev/usb/video/uvideo.c
index bb52232e153e..6bed4b4acee3 100644
--- a/sys/dev/usb/video/uvideo.c
+++ b/sys/dev/usb/video/uvideo.c
@@ -3793,7 +3793,7 @@ uvideo_dqbuf(struct uvideo_softc *sc, struct v4l2_buffer *dqb)
 		error = mtx_sleep(sc, &sc->sc_mtx, PCATCH, "uvdqbuf", hz * 10);
 		if (error != 0) {
 			mtx_unlock(&sc->sc_mtx);
-			return (EINVAL);
+			return (error);
 		}
 		if (sc->sc_dying) {
 			mtx_unlock(&sc->sc_mtx);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a63acaa.1c364.4ab0b2c0>