summaryrefslogtreecommitdiff
path: root/sys/dev/video.c
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2021-02-17 07:08:16 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2021-02-17 07:08:16 +0000
commit9b4ea3b65a31e30eae2c9802a5523289804acd70 (patch)
tree2622be7982a98c2e4afcaedb8d67de5953f46cd9 /sys/dev/video.c
parent98fe6231d8c9f10a53d5ed85ce108bc190d9f82a (diff)
Collect return code of video_stop() for ioctls calls.
Spotted and ok anton@
Diffstat (limited to 'sys/dev/video.c')
-rw-r--r--sys/dev/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/video.c b/sys/dev/video.c
index 73b9ee6fbb7..b6bde915f57 100644
--- a/sys/dev/video.c
+++ b/sys/dev/video.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: video.c,v 1.50 2021/02/16 19:36:03 mglocker Exp $ */
+/* $OpenBSD: video.c,v 1.51 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: