artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ff597
)
Collect return code of video_stop() for ioctls calls.
author
mglocker
<mglocker@openbsd.org>
Wed, 17 Feb 2021 07:08:15 +0000
(07:08 +0000)
committer
mglocker
<mglocker@openbsd.org>
Wed, 17 Feb 2021 07:08:15 +0000
(07:08 +0000)
Spotted and ok anton@
sys/dev/video.c
patch
|
blob
|
history
diff --git
a/sys/dev/video.c
b/sys/dev/video.c
index
73b9ee6
..
b6bde91
100644
(file)
--- a/
sys/dev/video.c
+++ b/
sys/dev/video.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: video.c,v 1.5
0 2021/02/16 19:36:03
mglocker Exp $ */
+/* $OpenBSD: video.c,v 1.5
1 2021/02/17 07:08:15
mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@
-369,7
+369,7
@@
videoioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p)
(int)*data);
if (!error) {
/* Release device ownership and streaming buffers. */
- video_stop(sc);
+
error =
video_stop(sc);
}
break;
case VIDIOC_TRY_FMT: