From nobody Mon Feb 06 21:52:21 2023 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 4P9g396kpqz3nStl; Mon, 6 Feb 2023 21:52:21 +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 4P9g3965ZQz49PV; Mon, 6 Feb 2023 21:52:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675720341; 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=g3SU2jGP3fxCit01BTt0a6hk8fy8FEkR5aIwd2tjHx4=; b=YR7L2JQLfDOpm6ib1Jeu2tAzdlG8OTlBvig8rLwD1lwRR5C4pI3lOe1WUy7VuVTr5inh/d yPL9Wq6qn2/j+GAtiQToqC4kb7CzXFP4vcvGVngGI1wl/H5K2s62LLj6A/E0HVfMDVuNrZ p2MqdNPCwGCwuV6XaY9RPMvC3rxG3p82zHCw92cpVmsQ8u9G35KLpGt38XmNimsT/payN1 9KDOLp2UECYckxKrut7SDsD598o3abjGP8h/2wazRiKopyWuZZR9XfhF6TJapnrl84cYRq P79LmkmrIXC1HdQRML90Rsy3uQuILFn34yvF+aeFWke1NMRqRrbwaxcpAQVg2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675720341; 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=g3SU2jGP3fxCit01BTt0a6hk8fy8FEkR5aIwd2tjHx4=; b=ZHjnyAsHWXULy+or/k/ptIY4slUHLYdAixEmNDLiwAjACYLpXWx9kWKnKen8RH+Uifuakf aClsKzsmyEEsvzIrLWh1ssbjhpX3+PGqSDTP7kHC3vXKKmkOerQDrUXvvED/ZVXz2eeNrH jIjwYtavlbEc8R//iGX/OvtVHpvHgIDcYnVJrMisolWUE2+Ph0YvOHdCN4r3+Xb+tkXFZo sPdJHGqWaHzHKeO1ULkdbdWJB7S5ZPpBSEYC6ezHaMDzXxolaBG+cUCato1goK2R8xZomX rHOPAn1kZTxon/Wfm4zQ3lkKK+f9gMb8KgVR4VPIGeYjZRJmf3hLqmVHLvEbew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675720341; a=rsa-sha256; cv=none; b=B5vBRJIMlwbc2y/YmmwV7hCK7pYcP7P66zyjkcFqgr92Og8eh5mzl5UKzTH2FQFEhj6ZbC EiHArgrJ4ZgMt4GJ+ES3v1hWTjtlq7d1eTzo4OqtEIDkWNM0RVx2voYhF0jylQ8jvScfdb fAxvbtV7VO834wd9c2Tgf0u8KiGk+LumJtM0LaNYzBL/GDEuwFW8/q29ypWnZgjqC+bSuk pGKfQDJK6aUhVINh967BIheDeekwNog3CmVvyLjYMjyezlcbZJGMkp+V16HyJWJQIP1Ij3 95ObDAr7GCOwfPAseqroDkXRgCzPxnPdxqDOA47/FAbOP2mB7gPtsQrUPkdj8A== 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 4P9g3959N9zrdV; Mon, 6 Feb 2023 21:52:21 +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 316LqLOH020766; Mon, 6 Feb 2023 21:52:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 316LqLdG020765; Mon, 6 Feb 2023 21:52:21 GMT (envelope-from git) Date: Mon, 6 Feb 2023 21:52:21 GMT Message-Id: <202302062152.316LqLdG020765@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: 70efe1a2fe13 - main - ccr,ccp: Fix argument order to sglist_append_vmpages. 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 70efe1a2fe13642732e56c7f040fe63f62bc6a6b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=70efe1a2fe13642732e56c7f040fe63f62bc6a6b commit 70efe1a2fe13642732e56c7f040fe63f62bc6a6b Author: John Baldwin AuthorDate: 2023-02-06 21:51:57 +0000 Commit: John Baldwin CommitDate: 2023-02-06 21:51:57 +0000 ccr,ccp: Fix argument order to sglist_append_vmpages. The offset comes before the byte count. Reported by: br Reviewed by: asomers, markj MFC after: 1 week Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D38375 --- sys/crypto/ccp/ccp.c | 2 +- sys/dev/cxgbe/crypto/t4_crypto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/crypto/ccp/ccp.c b/sys/crypto/ccp/ccp.c index 3f2b89545e8f..543ac3c2a913 100644 --- a/sys/crypto/ccp/ccp.c +++ b/sys/crypto/ccp/ccp.c @@ -112,7 +112,7 @@ ccp_populate_sglist(struct sglist *sg, struct crypto_buffer *cb) break; case CRYPTO_BUF_VMPAGE: error = sglist_append_vmpages(sg, cb->cb_vm_page, - cb->cb_vm_page_len, cb->cb_vm_page_offset); + cb->cb_vm_page_offset, cb->cb_vm_page_len); break; default: error = EINVAL; diff --git a/sys/dev/cxgbe/crypto/t4_crypto.c b/sys/dev/cxgbe/crypto/t4_crypto.c index c4d0bbf868a9..a60540c7fb40 100644 --- a/sys/dev/cxgbe/crypto/t4_crypto.c +++ b/sys/dev/cxgbe/crypto/t4_crypto.c @@ -296,7 +296,7 @@ ccr_populate_sglist(struct sglist *sg, struct crypto_buffer *cb) break; case CRYPTO_BUF_VMPAGE: error = sglist_append_vmpages(sg, cb->cb_vm_page, - cb->cb_vm_page_len, cb->cb_vm_page_offset); + cb->cb_vm_page_offset, cb->cb_vm_page_len); break; default: error = EINVAL;