mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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:
1 parent
8468152509
commit
8a7ab3ed22
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user