From nobody Tue Sep 03 10:26:56 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 4Wyhcx2Q97z5MkNJ; Tue, 03 Sep 2024 10:26:57 +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 4Wyhcx0YbFz4s0P; Tue, 3 Sep 2024 10:26:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359217; 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=nRYcuNCh3MACQZVpbyN2lvsQ46OzBS4zm198iIiOKV4=; b=COhKEhOTUqeBO2X2rFB+p0EbqsOzHpwrq5fa1K+Cu2PbBUzuoar+BlJdIiTZvi8uaNUeFx DUBfoVLevTXReg8C3FSaqiN+QT5Grx88a/0zmCZ1zU/lUG785egJWkvCNluY6GvJ2ckbCY fQUwqHEJo/hsjGsQHDuToHKM5wwpC9R+AmYoLtpg0lhFhpFb4RLS+27YGRBU99jk0AkSse LWzdvbm5zY/cCTnmO0Ymn6dbWIHW4/KHzqFD3bRGFXTfFKYlRbFOAmEiGfkmag/KiJKB1i m4i/qNo22rNh20aWE74aNCitHX8AjFHpyJikEuAK7KviZHUNz9MN2SBUIVJeCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359217; a=rsa-sha256; cv=none; b=jL3SGeH1+WBS7aRGSnPqER3u2xW6CpSZkcFnQa5/nNAO3QW772lmpwjrGVUe4IhDcJ2EpF w4LZsnszwfn+jFx79by1mR5KVftcaUeLQN5l322E14qnvWBxd5nPKLmZW0x7z1grl8AW9G n7jo9KyeC30J8z/jiZO9Dc/dklTKyKylmvh6qbtsdDfDtZDB2VENKbskL3xeO6A+Q9BEiP i3Wh0ZVvutMDLGzrioZord2gTFLu1tvnJyU+UeFFyq/ILg1w5OlWLtGURrgt+U56U7aRHF rzclT4a9CM9GTD/1H5U0y6XUHTaWg3c06QZ3Q9ka8rynIz9Cj8QiZPFzWxUtYQ== 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=1725359217; 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=nRYcuNCh3MACQZVpbyN2lvsQ46OzBS4zm198iIiOKV4=; b=Sa0TgObNKhBJY2viwTfva9PSl7KTtSAnmZBab3iySDwbEdBgVW5e7UvkE3c3QNOBQxTIos E5n2NWgvL7ofix42+f31lSJw9ca1lB2TgJqHoFBATfrY/IsoKXXJR5oEvAL0tKlqMDk0uW dKXNIadYv02MvHR5LgIp1Pj3eDNmqt87GJ3J2Z1LPjuyjksqF6T+KDqJEquM01G9wYnNl8 H8YeS/lOJDR8xQ6EVPL1Avt0gLbHj4CdCazUyvbb3YEacdhU4YybSTvYSraUFoFfUV8lF0 2xrIuy2WTZv8b0TsoSrs7ZNZSq7HlY9hhrZk4laTfoiqkTRa4RHX758lTCD6tA== 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 4Wyhcx0B7szcVP; Tue, 3 Sep 2024 10:26:57 +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 483AQuvn009316; Tue, 3 Sep 2024 10:26:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AQuRF009313; Tue, 3 Sep 2024 10:26:56 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:26:56 GMT Message-Id: <202409031026.483AQuRF009313@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: aac6c41d4ba9 - main - 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/main X-Git-Reftype: branch X-Git-Commit: aac6c41d4ba9b0a1aef561f6c4bfd284ab369ebf Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=aac6c41d4ba9b0a1aef561f6c4bfd284ab369ebf commit aac6c41d4ba9b0a1aef561f6c4bfd284ab369ebf Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:21 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:21 +0000 tests: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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 19691f1febfc..949300290b9d 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) {