The branch main has been updated by emaste:

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

commit 8a7ab3ed22d9d6b49c5c4799c1468017d691b343
Author:     Ed Maste <[email protected]>
AuthorDate: 2026-07-21 18:01:53 +0000
Commit:     Ed Maste <[email protected]>
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);

Reply via email to