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
This commit is contained in:
Ed Maste committed 2026-07-24 13:34:12 -04:00
1 parent 8468152509
commit 8a7ab3ed22
1 file changed
+1 -1
+1 -1
View File
@@ -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);