From nobody Mon Sep 30 04:45:17 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 4XH7mG2dYJz5XkGw; Mon, 30 Sep 2024 04:45:18 +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 4XH7mG1H8Gz4F2C; Mon, 30 Sep 2024 04:45:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671518; 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=c/NmM3ibfGmUWdwQn2vDt/S85DLdoksQCO8kZ3DEho4=; b=NFo3Le9EsRIGo8CHdfAUzK9T6ensh28Ha+Pqj7y8rLc+hvl/11gQ9Te3c2VLjXSvRaLFdx OyOS6KpJAc5a/HpQetqvP0ubI5hElyhHQmuftl7Hy6ReOf47XJ9H6F6jeJa58bxK5bjIQa 4audE8zpip6ldo4+Cp7ElU6bD8+fGVeJfo5ed5eCHL4iOJk4+ZJLcxh6hZgQOHPyBC4eC+ aoNywD/dHqOuA3Oo+4tFAynbLLY8UqeVDeeqv83u9Px+sQsQ1kAm9pV2NXTKQJd3bpI0hc vuoVHVok6bpgiz79NJTIOK4Y+APU3Axu9whs3WTMBEhEIsh1rMPMEj/l8xyXAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671518; 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=c/NmM3ibfGmUWdwQn2vDt/S85DLdoksQCO8kZ3DEho4=; b=gS6IQ968SIzlXfeccLrSBNBXvZxPZ4uLTA7xnX/BtSwPrauGypkaaIvmxA6cYah1SnP85x futjld593hdqMyANCC4UfYIUm7AIiaPRWG4ARPGWEVg/RdSpUipVn8FT6iudVlxsCfrFbN eg2cu06Bxe9i3lqFMUgswmBP2Z81P979Pz0u325JfXdz22N2kY/EOOn4ygQ8nfD0uuAJpV PJqhn1Uejhf+ThTDV40Cg+pX1IQbwMjb+fF7tES4YZsD1XJJCuPG+bUULtsA4/fj5nG0hY VlDzJkBeH5cib72YtrXDsQJiF+7CjUBKBSvkeblqQFMDK8gt4ql+baHqrnVx9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671518; a=rsa-sha256; cv=none; b=xLp6+VfmPWKkBIVUXr8KkjoT6CwM4QlQt4IfTp3XBkv4mUgDohJCKG9gXhhaNeK3H623tH FZb71meVI8XlKcXq8tFCYVzEf0MshsCrhv0dHJsk4HP+2fQolneyTJXzFzsTwPSrPmujjf ERoX2I3eRZBhp7mlc//lkitlw9e2PCo8E6UudtFfAwmhpae0+awg4kiV8QJWmYSP2gccqi IOMs31ySc0bvk4pGeQQBwD69o5bihn9poRzx/PsIu9vW1JC3pFSnS3JuDzj99OfzB/fmQS T90KdUs02evc1uwQ8hLew9OSNzT/Z7IBnpQF79+x+K8+9JIuSVbJbSlUjB1r+Q== 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 4XH7mG0SdKzf2C; Mon, 30 Sep 2024 04:45:18 +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 48U4jHFM086622; Mon, 30 Sep 2024 04:45:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jHK1086619; Mon, 30 Sep 2024 04:45:17 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:17 GMT Message-Id: <202409300445.48U4jHK1086619@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: 6a0ed6fe27ec - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 6a0ed6fe27ecd9f9b51a6c29bc15f5dbf2ab6c4a Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=6a0ed6fe27ecd9f9b51a6c29bc15f5dbf2ab6c4a commit 6a0ed6fe27ecd9f9b51a6c29bc15f5dbf2ab6c4a Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:21 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:18 +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) --- 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) {