From nobody Tue Sep 03 10:26:45 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wyhck04VNz5MkT4; Tue, 03 Sep 2024 10:26:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wyhcj5Jhtz4rrh; Tue, 3 Sep 2024 10:26:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aWhRh3IHIhR9EJIB1bNvgdBV1Fbs755RpaxrVFmEIWc=; b=wC33yW1OX5k3e2BSx15zfac7he9ZAWkRcJ8DS12YqOU86SwxXmgIK1ND3y/DMKKfLk3NBV 3Nk5HcPZMfbRCT5Df4c44tCbK8Q4TFh9rmfOOUceLIWI1i1I0iAGyGExPArtBHuW6lcpn5 qT9UdoZEoU9Vp4V9T7YT7DkbuG7VghYXHElWyffVBW1RZYi7k6M+xcx+q1FMo/CVzQscEQ RTrkw3m4bu8iaGnppzQ74Nptg4NUm8HDfKNneJnIKDM2rjJ7jTDuAyT9HuKFNfRuxQx/tt WBr3W959IBltTwu9k9vZ4qLG3dHGkHV7mi3iH4yt9f9wWgP7lESyaR4giew5Hw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359205; a=rsa-sha256; cv=none; b=EoNkbl8i6ldT5NrINn5ZyyW02//cl6jZ2OKgB7H2LYWDOca4k84BS6t8t51n/AE7doMFKk d3UY9JHtuXevEVFrfsB4QIQ3HC0JM0n8Sf2/dZpL6kuldE05XLQ5YSux/+Cx19VaHs1zGC nmGU8TxaGnRV5AIAd7JWVnkT7nL/yYXU/VICkq1Asaf09Fh/ZrD6NDxA6gjLsiJshVzKPM vdRcyDGhqkYaumXrolHQj2zUmt8Nj8ZehYjZFFkk7jWyKVKS5OdHdRh86RvrfCvhfJcBTw va173okwJEb9CsD7KQZ2js3aztkWf6cxRqteZSdhdZowtv2TF+TbIo0eym5lCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aWhRh3IHIhR9EJIB1bNvgdBV1Fbs755RpaxrVFmEIWc=; b=rvfLAOIMKUgOieuxBRxHoaDex3DR4c134gKvW2SbMHRQgoxS9lHk3isBR75fiASvY2stLT jmRQtE1brNYUe5xy0CgWB9n1yWix031rOvbpXTw9ud+uFMK58y8z04hbVIyiLux2comLxh GZg6jC+GLDdbk+C+LiGLzRuiDYvNW6/683KYUNMf18GqS+6ZgXRo94/QKa8r3TlHkwWRsz AOIxpMjxCYGrmUiKFJGF2dRnNv2lveo49i+Rnv6tdYOfLHkmr9S1KjQWO2TCd59/TYCMRm PokdXRjQyBtuh8o2ZUEogltlIdAo1y0wzecjwzPvyhTORatCA+H2CXkeOuc47w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wyhcj4vYGzcxk; Tue, 3 Sep 2024 10:26:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 483AQjI6008809; Tue, 3 Sep 2024 10:26:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AQjCF008806; Tue, 3 Sep 2024 10:26:45 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:26:45 GMT Message-Id: <202409031026.483AQjCF008806@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 99e3bb555cb1 - main - subr_bus: Stop checking for failures from malloc(M_WAITOK) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 99e3bb555cb1ef5572de54be0ffed2aa6fc080cd Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=99e3bb555cb1ef5572de54be0ffed2aa6fc080cd commit 99e3bb555cb1ef5572de54be0ffed2aa6fc080cd Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:17 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:17 +0000 subr_bus: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- sys/kern/subr_bus.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 71d04e483d4d..7fe46995ee54 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -5422,8 +5422,6 @@ sysctl_devices(SYSCTL_HANDLER_ARGS) * Populate the return item, careful not to overflow the buffer. */ udev = malloc(sizeof(*udev), M_BUS, M_WAITOK | M_ZERO); - if (udev == NULL) - return (ENOMEM); udev->dv_handle = (uintptr_t)dev; udev->dv_parent = (uintptr_t)dev->parent; udev->dv_devflags = dev->devflags;