From nobody Fri Jan 19 16:48:04 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 4TGlsw4YlQz56tDM; Fri, 19 Jan 2024 16:48:04 +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 4TGlsw2kl6z49BJ; Fri, 19 Jan 2024 16:48:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705682884; 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=XiMut9WTKztZQJYu3lgOpZe++wifs9lX4j+Xmna4Xms=; b=Pxjz++AHNhel854pm3tITNUtzi8HB4BccyYclbPau6+vuoBHDCxn4thBrEpC/smBn1aI/Q +bWRPPLml8H5o/pOydmoTCs4+LUNizCQ5ViaTHytVs+N8oceeZKFqK8vYSMx+ZrCI8L3Nz e1ldA5VPq8EHmuSL956fNTjj7RmWIw2uZ7p1GqLA7s8SFTbaaTnkJdwAv6lALj6JFVAi3G +mZNsb4GFC7uG80JL4wOknpA39lEqhUaSV/QO00PRcvnj+E2FTBX9yyna8KNW5y6mWm3IO sZrnpdIun9Zuw/R0yYTMXo5ec+gA+UggXwHRqo9xjWy0enBtF/HHhk2jKZD0vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705682884; 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=XiMut9WTKztZQJYu3lgOpZe++wifs9lX4j+Xmna4Xms=; b=cv+HYSyvlquYMc3rDM+ub1c/vBeKSHSuJhJbJf6dUjniGKjI/JwZkjwwnPIVu4DkghGjus G9EZ0/+nyoPP/V+Ik1fJqKebN5n+4jWG7iEouUX4sAv3tl2eeU8j4j67vifdQWgDmgfwt0 dLJMc7GN6caE5pvnyUwpHtTIsSUqbw9srG3AXimu/qnX2nyiMsdej4TgQBU3ADasZcoJ+U xbVA/bCin57tq0TekokaVX8YCaHhpGThTBp3zcnCRcTkP+k4G0LE2bWkeBa8n9mDha1MG1 zoLLKKbgRWN+wLjFgClogMAsBEYmlyYhnStFIFtdCmeaYl13XzGrRWeEMYyCcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705682884; a=rsa-sha256; cv=none; b=ykSjjiDkdqePMyEGDKrxoLMXcG2TYpeWIT0ijwIhFS1PN14/tOsSi3UNhoyjErIeHhlDVL gcs7Lv5bDwvu4mErAAyHLnaqMzwbbnfKpNIMmSdoFME0ZAq7bINYZ3R7gA2PGk7MjXe1l6 2jBZzD2cJhyrHTaxuPDrrkalDM1lRcoJzd8SA3EvmJeRZmLxpMa55Xv77j0kOw+tn1Qswu kxbbrJ+n9EDH8+P6Jaau/NQOX8RYQGDc2Og5hxKI4xh8mQyDLCRLEr5F9+vAvN/tO3ytMq uIlfQzNo01LbDV9oo7vCbgUNNDkR7vFohwB8H8+1/vrOcTKbAYaKtnAcdn+geA== 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 4TGlsw1pTkzyqR; Fri, 19 Jan 2024 16:48:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40JGm4nt043976; Fri, 19 Jan 2024 16:48:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JGm4Z1043973; Fri, 19 Jan 2024 16:48:04 GMT (envelope-from git) Date: Fri, 19 Jan 2024 16:48:04 GMT Message-Id: <202401191648.40JGm4Z1043973@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: 16f4d8fc14b6 - stable/14 - isp: Fix endianness conversion in isp_read_flash_data() 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: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 16f4d8fc14b6560f8d4744efef60932011cfcee7 Auto-Submitted: auto-generated The branch stable/14 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=16f4d8fc14b6560f8d4744efef60932011cfcee7 commit 16f4d8fc14b6560f8d4744efef60932011cfcee7 Author: Mark Johnston AuthorDate: 2023-12-31 23:52:52 +0000 Commit: Alexander Motin CommitDate: 2024-01-19 16:47:35 +0000 isp: Fix endianness conversion in isp_read_flash_data() Reported by: Jenkins Fixes: 10ed63fc06cb ("isp(4): Rework firmware handling/loading") (cherry picked from commit 91d2a093dfaccdf288db663b6e9d47539ea1c1bf) --- sys/dev/isp/isp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index aa2f1fb74c59..b53171add5f5 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -4575,7 +4575,7 @@ isp_read_flash_data(ispsoftc_t *isp, uint32_t *dwptr, uint32_t faddr, uint32_t d rval = isp_read_flash_dword(isp, faddr, dwptr); if (rval != ISP_SUCCESS) break; - htole32(*((uint32_t *)(dwptr))); + *dwptr = htole32(*dwptr); } return (rval);