git: 8a7ab3ed22d9 - main - uvideo: Return actual mtx_sleep error in dqbuf
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Jul 2026 18:19:22 UTC
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);