Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 0CA851A9239 for ; Thu, 28 Jan 2021 15:53:49 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 30D6C84DDB; Thu, 28 Jan 2021 15:53:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6546184DD7 for ; Thu, 28 Jan 2021 15:53:47 +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 mG4ah24_2DGX for ; Thu, 28 Jan 2021 15:53:47 +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 0B6EE84D71 for ; Thu, 28 Jan 2021 15:53:47 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 04DB8FA90; Thu, 28 Jan 2021 15:53:47 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 28 Jan 2021 15:53:46 +0000 From: "Jason R Thorpe" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210128155347.04DB8FA90@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jason R Thorpe" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: thorpej Date: Thu Jan 28 15:53:46 UTC 2021 Modified Files: src/sys/kern: subr_device.c Log Message: In device_is_a(), handle dev or dev->dv_cfdriver being NULL. This makes the calling pattern: device_is_a(device_parent(dev), "whatever") safe. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_device.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.