From: mglocker Date: Wed, 17 Feb 2021 07:08:15 +0000 (+0000) Subject: Collect return code of video_stop() for ioctls calls. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9d17d79786bc2bd71c90602337753a1f8ff08a01;p=openbsd Collect return code of video_stop() for ioctls calls. Spotted and ok anton@ --- 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 @@ -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: