From f4c15a3ddaea20fb7f99d46fc181f303015a25cb Mon Sep 17 00:00:00 2001 From: anton Date: Mon, 5 Jul 2021 05:50:19 +0000 Subject: [PATCH] rename kd_put() -> kd_copy() --- sys/dev/kcov.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/kcov.c b/sys/dev/kcov.c index f533e3420b9..800c38080ea 100644 --- a/sys/dev/kcov.c +++ b/sys/dev/kcov.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kcov.c,v 1.37 2021/07/05 05:49:30 anton Exp $ */ +/* $OpenBSD: kcov.c,v 1.38 2021/07/05 05:50:19 anton Exp $ */ /* * Copyright (c) 2018 Anton Lindqvist @@ -754,7 +754,6 @@ kcov_remote_register_locked(int subsystem, void *id) * The remote could already be deregistered while another * thread is currently inside a kcov remote section. */ - KASSERT(tmp->kr_state == KCOV_STATE_DYING); msleep_nsec(tmp, &kcov_mtx, PWAIT, "kcov", INFSLP); } TAILQ_INSERT_TAIL(&kr_list, kr, kr_entry); @@ -776,8 +775,6 @@ kcov_remote_attach(struct kcov_dev *kd, struct kio_remote_attach *arg) curproc->p_p); if (kr == NULL) return (EINVAL); - if (kr->kr_state != KCOV_STATE_NONE) - return (EBUSY); kr->kr_state = KCOV_STATE_READY; kr->kr_kd = kd; -- 2.20.1