From nobody Mon Sep 30 04:45:06 2024 X-Original-To: dev-commits-src-all@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 4XH7m2707wz5Xk2D; Mon, 30 Sep 2024 04:45:06 +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 4XH7m25X8Kz4DdG; Mon, 30 Sep 2024 04:45:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671506; 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=3QxlFx+x+siIWvd27eRI0N4qhy83fW8DnRtgs05So3o=; b=AcKrVs9bT+CGRWCkWCX3Wsl3h2jV+spsN7brrf4UcgCPc1DXpwuKUOgePXzHDraD4ukdzQ o/yaIkdjSh94g19SGmHsZtbWv/werJGfyXgn6iZ0+zli3Nka4NscsHeCE8rAEMx+jZiAw1 uTYLeM2uBgdz1aBceWquvMIY1ES6FzByJibfRMsZ0OXFBErA3HJWhyWJAYp5G7AgoA8+rz kGpeDbUIq2X206VVa0m4Ystdanl5iWfgGXJe7d+OBsXdn/G9/8Mx7M/qZuhsViHqB5/BWP MCA/DCekqfnRtl6cjzOfrooV1HQSyd2KAohHyN6+tsx182qtlMq6u0sOQ4wIyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671506; 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=3QxlFx+x+siIWvd27eRI0N4qhy83fW8DnRtgs05So3o=; b=RyzLki9JmrfWHVsvzl+JhKHedKRPsMcp5WnCUZ8lz3FhEALN58yNkzLBY2iNDfDYRXRhRI Owak/gzrmsKLAYhmZWFyBggwG98kFRMGVn/ZpESI72qWRnrImFERQ0cpPRLoksHUGfnewe mYnf6gkS4Ulxmv5yEZYOGLxbwRNXAMvVlvha0RXzYoVEXiEiXiC0+oQex4hAYKZdED07Jm uzL5XQ+xDqr6f30CS4Xqksd+L+uv1jzRO66ZyGPNcyWGF/NUVf2zjWMZ9kjsyna7BoSuOS ybRBw3FBujl3ZTMOrSH1LZCN9EoeUb3LwyENJFGq2VAsxaLybJo8vNgYciugcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671506; a=rsa-sha256; cv=none; b=BHnPbYSqB+EiEDBVcxMgyM+nk5QnspmphJ+JhQYb67syNinZd1NliQXij+FUbL9pJ7Hn5O 8Kf6sRg9xnhOOHGU+2sy/Jq6toMitRHV+zXjYN7KDez61XRZizCYHVynQhsJ6HJl2hq+DF qxhKOsHVOxFqhK+0v3lOo2u0YPQRfnEjNqWf0eO+yletvrb6jFTto7EZVjzkMXPhSxCUg/ QwKDHfcm1kCuNPRciDZUo8QwQo6S55UbNlRJRPOWX2lEzyQ8UH0EoDFFUFOhvW9EiI7UKV 2cgiu0NYUf6WMyibnGeF0tIIokgSthUhPTHRBxc1dxAea4yITPdaRyX6m1zQBw== 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 4XH7m258P8zf9P; Mon, 30 Sep 2024 04:45:06 +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 48U4j6Jo086111; Mon, 30 Sep 2024 04:45:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4j6ae086108; Mon, 30 Sep 2024 04:45:06 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:06 GMT Message-Id: <202409300445.48U4j6ae086108@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 44a6f9c9a0b5 - stable/14 - subr_bus: Stop checking for failures from malloc(M_WAITOK) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 44a6f9c9a0b503f70fb7f1d44bd75a8f68c4833f Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=44a6f9c9a0b503f70fb7f1d44bd75a8f68c4833f commit 44a6f9c9a0b503f70fb7f1d44bd75a8f68c4833f Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:17 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:14 +0000 subr_bus: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 99e3bb555cb1ef5572de54be0ffed2aa6fc080cd) --- 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 38c646593a85..5965b8941b54 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -5395,8 +5395,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;