From nobody Tue Sep 03 10:27:00 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 4Wyhd05sCbz5MkLv; Tue, 03 Sep 2024 10:27:00 +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 4Wyhd04N7Kz4sG7; Tue, 3 Sep 2024 10:27:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359220; 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=nU+lp8k+LV1c3yYym7YcUY4XB5JfKLUrMwyk5m/gKAw=; b=VnKIdL8pPEI+tLAXYf22BagtopCahn94mNdeenvIGyzvpyx7fvOUClZCuCRpbFf7fjLQ0C bMwiGM7KPcjqQC+5ExO6Q0Z4xgULQW+vixaweVhiOhcmiEO8ziyqdUjjcoohhBC53zGKmz acPL0hWRuVnFUTss+9x72kBiMPuFxllTmnQb2OZaEw79Ragiw2UBokfUkfIkzwlWj84A8c oc3oI8NA5S6+rS+KEooV6s52AmE2eqy8A3WzyaAV+nacpJuqYeRJuoMKT1dEPSD7PAFcDZ a7vNjczbnSC//5WyGzFVN3jYI5RpF3h3F1THuwqF5lBnXf+PD+QYvMHRILHJeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359220; a=rsa-sha256; cv=none; b=QzfJknG+9i6cbZRcbYotAi1sA5Q48l6mJ0djPrdj1cR9x5WMHvM4V48+gxxbEVZaMWUBoI yfQtdN/kmIdbGp+ap+PC8Nusu6m8k03p+Ev3qPnsTDW400fU0t2e91xS7gi0DjAs0INPTF JZFaWfDjqCqjXEZgUMNVOOj3cxQxEeGSKH6qXhQk+P65YM5OmqNBFB1C3r3PkDOsG/GWET bcW72sWZCjMWH8ufVIWa7dHpjvO3MQTIvnz+/lbzMeLheL2tcT0JJMNFSwz7YJxWlmZboU jF4xpW0zbxojbrW8MVsRM/Vc56c5KMk3ZSmJ7rBsQwpt88yeTEyqeoVsXmASqQ== 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=1725359220; 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=nU+lp8k+LV1c3yYym7YcUY4XB5JfKLUrMwyk5m/gKAw=; b=OSc6lSek9KqAkOjWn0M2g5UjRzLCt8Njm59DxfqkNUIq1phGQJ8a30D335Z3E+WkAWAUam XoeGxpNvWdgHc9XYMTvWKDCLJHsg/bN9OyYmSsx763E8Yc01Lb6nwd7RFZitKEQSCvmhq7 cw/Oc4C5m6az6Z5knD4b8+ueOQeBS41trrTf1Ye6ucNJuM2wOQ5OHgYVygLeiEWXjjT+E7 gMgOMJfGiYPVkqePSjm3cPaiNManOgIQ+geB83Dust8nhWmEtBGZW8HJoW5gRkIs5YW4Vs ICjr1uNSbjroa2A00n62wLiJhb1KibwcM+usy1pRCPFujdqP7RyqdFoKYaKEhQ== 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 4Wyhd03Smgzcsr; Tue, 3 Sep 2024 10:27:00 +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 483AR01W009476; Tue, 3 Sep 2024 10:27:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AR0Ed009473; Tue, 3 Sep 2024 10:27:00 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:00 GMT Message-Id: <202409031027.483AR0Ed009473@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: f75ceecad215 - main - smmu: 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: f75ceecad2157a0d3aca61a4893ab78f2dec21ee Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=f75ceecad2157a0d3aca61a4893ab78f2dec21ee commit f75ceecad2157a0d3aca61a4893ab78f2dec21ee Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:23 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:23 +0000 smmu: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- sys/arm64/iommu/smmu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/arm64/iommu/smmu.c b/sys/arm64/iommu/smmu.c index 93b0cbb7c8e4..a832f6a6ec70 100644 --- a/sys/arm64/iommu/smmu.c +++ b/sys/arm64/iommu/smmu.c @@ -960,10 +960,6 @@ smmu_init_strtab_2lvl(struct smmu_softc *sc) sz = strtab->num_l1_entries * sizeof(struct l1_desc); strtab->l1 = malloc(sz, M_SMMU, M_WAITOK | M_ZERO); - if (strtab->l1 == NULL) { - free(strtab->vaddr, M_SMMU); - return (ENOMEM); - } reg = STRTAB_BASE_CFG_FMT_2LVL; reg |= size << STRTAB_BASE_CFG_LOG2SIZE_S;