aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-07-21 18:01:53 +0000
committerEd Maste <emaste@FreeBSD.org>2026-07-24 17:34:12 +0000
commit8a7ab3ed22d9d6b49c5c4799c1468017d691b343 (patch)
tree29a2cc123fe0d9a8866ebff6d577df1179f6e9cb
parent8468152509a0dfd73e69618af2b1d7f9cbd366f7 (diff)
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
-rw-r--r--sys/dev/usb/video/uvideo.c2
1 files changed, 1 insertions, 1 deletions
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);