From nobody Mon Sep 30 05:08:10 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 4XH8Gf2tnRz5Xlnw; Mon, 30 Sep 2024 05:08:10 +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 4XH8Gf1Bklz4WqS; Mon, 30 Sep 2024 05:08:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672890; 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=n9cenK8YHRMZ/DMmFWKCcp4Sc+XLcEzqRNB/BjJu3kg=; b=s3Ev7i/xaWf4h9/BXygX3MGW38HTdkyYIbDqlrLFocp2QYCL6gaiml8638VNK8EARoKvlb Pgiq201mVoVZay5gHhCIEWrD5FcKOTEdbTwSlf0eL0yR7tUz/iVHFtvEmyuxVqcypYCRdb dE8oM5A/kIfLdK89ZBiTUtOZZViWaDWR6COIvt1NR8O7SZlHpO/SHBAdBZ9uwqPKSyvLPr VLRUvPQWoQCGHIK8A4DRqr+SLQ5EvGB9Ir+DQ7yd+ugh22fvWvyS8HpdS2Ihd/pU8UAJ0X tvsqKCG4rvxVY9kyy/tgrNnTLjztZREDVDxnah5ycsV70jtJHc8r1gy4xxxPTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672890; 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=n9cenK8YHRMZ/DMmFWKCcp4Sc+XLcEzqRNB/BjJu3kg=; b=yQWqjvJvHA/njvJHSybs8eG3lxtRl+kktVdqSM6pRdlIz1/n4/XDsoQ1IQGAAa6QC7hKDW qpY2/EtM76P7Y1ir38ssolSIVeXOiqlwxIM50MbIujFruZ5yYBYJCUSPnQ7tWjHiGW8y+m IyQ/cbvvpvJ2gsM28+MBTK9/gOt+uCMlw15fJsg6ZVV1gv6BbJUroxWEvsbsYv0DSJ19q7 ym+YqauIRrf0jReJnz2zYuqNI6TNfcmo2I2XE0YgBwxfWnTQjhYa3UXHPgJjViBHemNLSk oT+HQuP1GDjJApEddosE6dzTjUZRoPWffLjDB8n6RJGRGTzduEo6NIMxKpdrVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672890; a=rsa-sha256; cv=none; b=NRrjcy/xDY5FaDzFWqtylaxMExJjYZvALhl5fwH/FdwTARDREY4rXnY5YC7kSrzaT/5Mu3 miSoLav6S/gMIO3H9jpIN2QGwt3CDiP+KB08X4FYo0g+I1KLuioO6m9zZxSJgOj1dEfhDf ZIozIuHkKZ3oPpkkIS67Vk916oIysMyBdKgV9ArEz9kOYWgzvo3jD84vKYmVS79VDK1xac qPYmsE8q+Pj0OnIx8uxZNpeMPrRmEGsMjhIxizxCMfbcgmzXEsPmTY2kNH49BLr2SmDyB6 f4HrSYfkiDQD1RfaKrTM0JlczxA/fV+6ou1czBRJN99x2ZSd7Y/Qu7x/qBRMmg== 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 4XH8Gf0nQDzg9y; Mon, 30 Sep 2024 05:08:10 +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 48U58APa024461; Mon, 30 Sep 2024 05:08:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U58AvF024458; Mon, 30 Sep 2024 05:08:10 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:10 GMT Message-Id: <202409300508.48U58AvF024458@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: a8a127328ea4 - stable/13 - tests: 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/13 X-Git-Reftype: branch X-Git-Commit: a8a127328ea48a62e87799ce3f1513df1a117e18 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=a8a127328ea48a62e87799ce3f1513df1a117e18 commit a8a127328ea48a62e87799ce3f1513df1a117e18 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:21 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:31 +0000 tests: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit aac6c41d4ba9b0a1aef561f6c4bfd284ab369ebf) (cherry picked from commit 6a0ed6fe27ecd9f9b51a6c29bc15f5dbf2ab6c4a) --- sys/tests/framework/kern_testfrwk.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/tests/framework/kern_testfrwk.c b/sys/tests/framework/kern_testfrwk.c index 19714fa76f52..c6b46542a205 100644 --- a/sys/tests/framework/kern_testfrwk.c +++ b/sys/tests/framework/kern_testfrwk.c @@ -192,10 +192,6 @@ kerntest_execute(SYSCTL_HANDLER_ARGS) } /* Grab some memory */ kte = malloc(sizeof(struct kern_test_entry), M_KTFRWK, M_WAITOK); - if (kte == NULL) { - error = ENOMEM; - goto out; - } KTFRWK_LOCK(); TAILQ_FOREACH(li, &kfrwk.kfrwk_testlist, next) { if (strcmp(li->name, kt.name) == 0) { @@ -244,10 +240,6 @@ kern_testframework_register(const char *name, kerntfunc func) return (E2BIG); } te = malloc(sizeof(struct kern_test_list), M_KTFRWK, M_WAITOK); - if (te == NULL) { - error = ENOMEM; - goto out; - } KTFRWK_LOCK(); /* First does it already exist? */ TAILQ_FOREACH(li, &kfrwk.kfrwk_testlist, next) {