From nobody Mon Dec 05 00:30:36 2022 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 4NQPbK0c59z4k1wb; Mon, 5 Dec 2022 00:30:37 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NQPbK0Bgsz4P6W; Mon, 5 Dec 2022 00:30:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200237; 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=56ulWGJ0u/EGyuRMwHjAd9NOWw/978AXea+wA9T1zp0=; b=MRMg1ZuFZXZ/jqIqmH4Mg8E/orFzyPDO+Fv63QuJCtG5v9I+3eLVSqSqdQO7uLsu7oo2vW RwIjI4ykNWwMz3VcTpPk4HcKZ0joYB0Jv/X4LHpygu/6Ba4icrrZtm9ejXkqNfoDnetytI ILp6HucwoD5nJJUsYqBYfT07tJivafrWJaMvTPBT7ysH/eyBn8w4po1vRPZRGEi8BFj/9L 1Ept8mcZd+kh5BPdXsUYdumLJXyJPv5FFtyux77yMca4jdGz0C5Y/D3E7LfEtdbK1sejlG syMJTb3SEN7GC8g/WfUpJupyDJAf1kRnhkpQmsmhInLlCtl7e/HuiZ6R9nimoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670200237; 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=56ulWGJ0u/EGyuRMwHjAd9NOWw/978AXea+wA9T1zp0=; b=My54Lo1QYclebiVYsPNsifo79gWBzrhpuzMvpiwvQGJzb2oihlbXB3+Pt+LEatDsoVRvmv xqUP+667PabjiSkf2k/Wxcv1HZ26Ryp10Ju8S5//s//t/t1TxKKeprhzyQEMZvo6sQPrGQ J8k5QACNdxo3ASKvlmljmKO3rcKbfSsP4I6KNPBxWvgSQRo2cfHR8iWbop+MtIhhnGA2ZT +66x/wac4R9DgLleka0fW/DRPDfmbcVmmj/b4Mg+Mpynjt2KDYgrFvf2BDH3drVcRc0dWF t05tBGz2MpwdTmmdoT/+oE3JMTGRX5xOSAXxbO9M9VjIO3tObx+0Mm+geZGFxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670200237; a=rsa-sha256; cv=none; b=d2gFGRvGxL0x0QUgOUeTHiEG0+iDraiTWAiIdypWM25zU4Z3e/iJcCwJH1JNLLu3Z11aUt WrNH0vl7CRgSXlULlOnOmav+TqpbTkl4dq8Mz2XfxeLNQwhRkCPhC0E46GdpHw93a0ryh+ xvxRcQaCCR2fy1rbg7qObfN81HH9aJEsqE0Ua8oJMtb9AP+wYihSDCXTKXpAoXEQEAH+Xm 37Hf7FZlNUZR0IiHysyk1BiZVCce2yHX9VbmOFFozXUFGDLPGCLBHxRzgS4CPJ54nmHlJr vldWThzf64L3UXqg3e2BLfzA68lxjG0CN8YVDbbfnA+qx2HgItHM3dj8DTZy6Q== 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 4NQPbJ6QHvzdKK; Mon, 5 Dec 2022 00:30:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B50Ua0v069667; Mon, 5 Dec 2022 00:30:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B50Uasm069666; Mon, 5 Dec 2022 00:30:36 GMT (envelope-from git) Date: Mon, 5 Dec 2022 00:30:36 GMT Message-Id: <202212050030.2B50Uasm069666@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: f4db390553ba - main - netmap tests: Reset ctx->nmctx to NULL in nmreq_parsing. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f4db390553ba9db752865f5a42c36b062fdb03f2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f4db390553ba9db752865f5a42c36b062fdb03f2 commit f4db390553ba9db752865f5a42c36b062fdb03f2 Author: John Baldwin AuthorDate: 2022-12-05 00:29:25 +0000 Commit: John Baldwin CommitDate: 2022-12-05 00:29:25 +0000 netmap tests: Reset ctx->nmctx to NULL in nmreq_parsing. This avoids leaking a pointer to the on-stack test_nmctx which triggers a -Wdangling-pointer warning from GCC. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37536 --- tests/sys/netmap/ctrl-api-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/sys/netmap/ctrl-api-test.c b/tests/sys/netmap/ctrl-api-test.c index 7cd4d6ac6d9b..8c87760217c3 100644 --- a/tests/sys/netmap/ctrl-api-test.c +++ b/tests/sys/netmap/ctrl-api-test.c @@ -1974,6 +1974,7 @@ nmreq_parsing(struct TestContext *ctx) ret = -1; } } + ctx->nmctx = NULL; return ret; }