From nobody Mon Sep 30 04:45:20 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 4XH7mJ5j0Mz5XkH0; Mon, 30 Sep 2024 04:45:20 +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 4XH7mJ36Svz4F8n; Mon, 30 Sep 2024 04:45:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671520; 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=qdTlxEcuMQT6anedAKrWIyqgKYKOJgRJ9neXnV9P1kE=; b=wwDnSFFnIe7TM5tzTnDTJcTDAJoqeVLmOP/fReVuKQwLd1njYpErq5rwcVE2tMryeea6/e ckyFuzDJJQowfS08NpWu9ZCQ9msoz13b+RayDks+XZZIv9V3kiJfEGsBORnNmpNuf0BVzw N42uP6zQ1sq/SpYBgphN668Iec2/Z4cV/1aDIAr50KfxCB+P3gG9KulGYIteQbE5R0JST0 wKkzS2HI87ASvd5Zn3eh0BG5jwTkAYeiPBwepkRQb1jeM97KVYdfeHumxvipCycoMFeJDL 9/IIWG7fu0Zx78Z30raPJ+m41b57ySJn2nCF9gOYosvnngnmuJIB4PfDloAzVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671520; 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=qdTlxEcuMQT6anedAKrWIyqgKYKOJgRJ9neXnV9P1kE=; b=rnLbR6QPpgBMdIo1zjLzIdMDyE25inWO0n2xiFJQqLtcHz2vjU3IA5svfc3jpONnF0BQA6 ZqKdluXQb46n6q4vM2JE/6GWvtugc/MHdSlvI2rkCa1/XFK/MgONrLVehKyTDkrtOy2198 JPEOx7ONH1dv5GagGh95q/5FIOyM2GXhD27OpPbboKiLKWdJWNqaRPHXLjbKnSeklJt6xl 1SRurMNzD5h7KFSW5z6nK9ZTCit84QUidbzGnxz73lnzEhQhFtx3llekydTfxbbaObnQeu 5mMAPyreLoBWtLjL5AeEjdNRtY5zqdGOGP6BDyDCw0VxsiC0jG5dpctPm3LOEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671520; a=rsa-sha256; cv=none; b=soIvRFKcSUtJ++sBgolzO723JWwMcp2avlYx2obndUkfWfE0Z2GivfzB9xF8ApAxqW4yKd MImhoFXcqADKfqHu0Fy4IVXvUByGYWVAdLWOZibGu3tALez/4nAAht98sZrNshfDNGhkWP 1JrSCyRBPhzgO0FlqJkN20C/QfFDKeFnUjTQsFHMNu31CGs5TVZpRPJz98rLkJFJeO7HDZ iIBQi1bxUUzmpJiGGYb3cShuDrRWY24a/jk6aJV3Dwu6Idh3Y50iKNt24dU+rEVpsGu7xv /Aaw7BSfm9bH90yDBzHPsFfdd7KRn9N0S7FsET1cY+sfFc35vNFRkP0Q4yBnRQ== 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 4XH7mJ2LZMzfFs; Mon, 30 Sep 2024 04:45:20 +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 48U4jK6H086725; Mon, 30 Sep 2024 04:45:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jKtC086722; Mon, 30 Sep 2024 04:45:20 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:20 GMT Message-Id: <202409300445.48U4jKtC086722@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: 53b79271160c - stable/14 - cmn600: Stop checking for failures from malloc/mallocarray(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: 53b79271160c36fc060c819a8e34dab86dd00df3 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=53b79271160c36fc060c819a8e34dab86dd00df3 commit 53b79271160c36fc060c819a8e34dab86dd00df3 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:22 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:18 +0000 cmn600: Stop checking for failures from malloc/mallocarray(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 1d321c1907c210a33192ff5293f5c23554c96867) --- sys/arm64/arm64/cmn600.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/arm64/arm64/cmn600.c b/sys/arm64/arm64/cmn600.c index 7079907e63ce..976c272cc869 100644 --- a/sys/arm64/arm64/cmn600.c +++ b/sys/arm64/arm64/cmn600.c @@ -332,9 +332,6 @@ cmn600_create_node(struct cmn600_softc *sc, off_t node_offset, int i; node = malloc(sizeof(struct cmn600_node), M_DEVBUF, M_WAITOK); - if (node == NULL) - return (NULL); - node->sc = sc; node->nd_offset = node_offset; node->nd_parent = parent; @@ -399,8 +396,6 @@ cmn600_create_node(struct cmn600_softc *sc, off_t node_offset, node->nd_children = (struct cmn600_node **)mallocarray( node->nd_child_count, sizeof(struct cmn600_node *), M_DEVBUF, M_WAITOK); - if (node->nd_children == NULL) - goto FAIL; for (i = 0; i < node->nd_child_count; i++) { val = node->nd_read8(node, child_offset + (i * 8)); node->nd_children[i] = cmn600_create_node(sc, val & @@ -420,9 +415,6 @@ cmn600_create_node(struct cmn600_softc *sc, off_t node_offset, break; } return (node); -FAIL: - free(node, M_DEVBUF); - return (NULL); } static void