Received: by mail.netbsd.org (Postfix, from userid 605) id 2291684D96; Sun, 16 Apr 2023 17:57:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4436484E71 for ; Sun, 16 Apr 2023 17:57:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id bkuVg82ZL5Ct for ; Sun, 16 Apr 2023 17:57:08 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id CBF3784CE8 for ; Sun, 16 Apr 2023 17:57:08 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id BFAA8FA85; Sun, 16 Apr 2023 17:57:08 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 16 Apr 2023 17:57:08 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/dev/pci To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20230416175708.BFAA8FA85@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Sun Apr 16 17:57:08 UTC 2023 Modified Files: src/sys/dev/pci: virtio_pci.c Log Message: virtio@pci: Fix assertion on detach. If the child never attached in the first place, it's OK for it to not have detached. XXX This should not be a set of flags; this should be a state enumeration, because some flags make no sense, like FINISHED|FAILED. XXX This should not be asserted separately in each bus; there should be a single place in virtio.c to assert this, uniformly in all buses. PR kern/57357 XXX pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/dev/pci/virtio_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.