From nobody Tue Oct 22 19:35:23 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 4XY2T739F6z5VpWr; Tue, 22 Oct 2024 19:35:23 +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 4XY2T72Wcfz4ttW; Tue, 22 Oct 2024 19:35:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729625723; 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=584DWcIR7x/F9WyygfAIY98PQUm3705xplLWkkSt54A=; b=LGSeX9efhQv7daBjzuKKCxuIK3FhFrALub1pyTJgn9bd7Q4quX9W1SsjPmyk+1TJq9uvxX zkP10neaCmHKDFZxUP9i7vsfX3XrjxfSlt7gxU24Ez9EaaN1eNccYNLyDCBdeMXset1UGy CHTb5fvCJe2yEu5kfi7buDvdKC25bP/aAYp7gBLslzbhW9UURqb+uFXsAYDXuzGgkBfXkI EoLn4Vp391xwXIeUZp/uuSb/fiVsGupN/umvUSq7R/L3tdbVpLYx3nGdwkIv3rPg/trajt wHVHTVKNACAOKEgD+Jx6lja2UBQwvyc1B1D+t/zRi/fjPnDlvpkunE+WzRW9lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729625723; 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=584DWcIR7x/F9WyygfAIY98PQUm3705xplLWkkSt54A=; b=FCVtlfQfQ6lOkVCBk9QUHMGQqFvZLHa4fD96KwFzoLTTGppwYLxC8iVPwJrFnjPz+uTpmE mh/1gpFJgCw6vdMTW7f1oPnrvJt/FJHa8VcJN/bgT7UOybLKzhSFAJEXNVATGyDd1SOkl1 yf+JbvICNllwMCs2tIfa769oJBvId+r8qu343LH3AKhNFGWh6ROiV4o3vDqdPj413cadGP HY4aPIjdMLR+YQxmGXqBLAwhCfLWqboqJfBeElsZKlHlWERzpFPu0IX/6749rXwALOjqKb 1JAJlecczR1EpuyA4g5KVc5Gd7o6WjZHknDGVLVHCVGm0E8M798VGXonhl27HQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729625723; a=rsa-sha256; cv=none; b=wq3cXy9XQ7k2Oj1NBF8sG5M3FH0x3Kzm0TolkHd4kqX5zxIlV6xx3CxUJRAThoTyqAJyce u7ShLwWCOQDW7QRpbI51DPj/PYw61t7/z1UOZI9XDFuuOOaUoNkRc7YUfkqfGYmcUcUJqv GnPt/bEAPTfR9xyQDcb8I6yY4UWKSUBhyAGp7q9Pr0+McPP9L+hirErUH4tVllvrNfze5h JnCx+UkNGDhUo1JRvxjwbvUppCqcPbIYZIi4tASmBAUv9O6zlXyvlLEr8L1iXCtUcNEVnD pVlmfY6xfJVHj29F1K9pkp/3DWNolwfXJdmhc6p6b0zH2W9WW++tqaIY4R4b/A== 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 4XY2T727hmzS4Q; Tue, 22 Oct 2024 19:35:23 +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 49MJZNuo018257; Tue, 22 Oct 2024 19:35:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49MJZNOe018254; Tue, 22 Oct 2024 19:35:23 GMT (envelope-from git) Date: Tue, 22 Oct 2024 19:35:23 GMT Message-Id: <202410221935.49MJZNOe018254@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 8f553746b412 - main - acpidump: correct memcmp() result check 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f553746b4120a6a9d2ffa12d6755c13705a03fa Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8f553746b4120a6a9d2ffa12d6755c13705a03fa commit 8f553746b4120a6a9d2ffa12d6755c13705a03fa Author: Konstantin Belousov AuthorDate: 2024-10-22 19:29:52 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-22 19:34:33 +0000 acpidump: correct memcmp() result check Fixes: e9ab827df94fed8f129ca4f7756e23ce77d8a655 Sponsored by: The FreeBSD Foundation --- usr.sbin/acpi/acpidump/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c index 18a0ae486387..7ebd3e764005 100644 --- a/usr.sbin/acpi/acpidump/acpi.c +++ b/usr.sbin/acpi/acpidump/acpi.c @@ -2574,7 +2574,8 @@ static void acpi_report_sdp(ACPI_TABLE_HEADER *sdp) { for (u_int i = 0; i < nitems(known); i++) { - if (memcmp(sdp->Signature, known[i].sig, ACPI_NAMESEG_SIZE) != 0) { + if (memcmp(sdp->Signature, known[i].sig, ACPI_NAMESEG_SIZE) + == 0) { known[i].fnp(sdp); return; }