From 48b3e30f191b4780cb55554f6a5aae4bcfb910d9 Mon Sep 17 00:00:00 2001 From: anton Date: Mon, 27 Dec 2021 15:38:25 +0000 Subject: [PATCH] Yet another errno correction. --- sys/dev/kcov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/kcov.c b/sys/dev/kcov.c index ec24374e766..0a130fd0c25 100644 --- a/sys/dev/kcov.c +++ b/sys/dev/kcov.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kcov.c,v 1.41 2021/12/21 06:08:57 anton Exp $ */ +/* $OpenBSD: kcov.c,v 1.42 2021/12/27 15:38:25 anton Exp $ */ /* * Copyright (c) 2018 Anton Lindqvist @@ -319,7 +319,7 @@ kcovclose(dev_t dev, int flag, int mode, struct proc *p) kd = kd_lookup(minor(dev)); if (kd == NULL) { mtx_leave(&kcov_mtx); - return (EINVAL); + return (ENXIO); } if (kd->kd_state == KCOV_STATE_TRACE && kd->kd_kr == NULL) { -- 2.20.1