From: anton Date: Mon, 27 Dec 2021 15:38:25 +0000 (+0000) Subject: Yet another errno correction. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=48b3e30f191b4780cb55554f6a5aae4bcfb910d9;p=openbsd Yet another errno correction. --- 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) {