From nobody Fri Jan 19 16:53:36 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 4TGm0K0j7Mz56v0t; Fri, 19 Jan 2024 16:53: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 4TGm0J57wJz49x5; Fri, 19 Jan 2024 16:53:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705683216; 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=EL88yJgJY0MENFXu8Kr45OhdCyqoAbbhMrW884e+gqU=; b=IwJIrHzc0R1d9sj7jSejGrEquNz+50sKRR8Qff5Fvz7DWGWKAjZpAzHxnTYacx+ea+zqgU 9PlDdKlmokugYK0j14x5QOURt6zO+Z/80TmfZlc/9d1jQBhrI2AoG6dBDce9ddX7/9EYhy je1teTz6T7YF4v++WLvS2ksJoHA/b4KWn4SC+i4acCDJJWUWciXCy0qYGiMTtfE6H4h0ZZ 8inBBMQqlwX62H/8LJGBBHZvM7g+7z3WhxcBP1B3TshSZdvSuo2jlKI9KGRDScu+SwfKFA r2Lj2noaEwG6aBpPycjZnVTaMMCPL7nMZZsaSVkN16s6XVkTDL2PdDwUE/VnHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705683216; 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=EL88yJgJY0MENFXu8Kr45OhdCyqoAbbhMrW884e+gqU=; b=DCn1N9B5SNCSeXpqBaroKLT0pXhXUKk6cXn/RlsffGt9ji91WTG43w+7k1AnJGWMHXsJg9 0w16+DAL8zg8wd61kZGNZcUIa/aZvNeUimVNTeERCHOkJp+Zn3ufK5G2TciSLhOUFbuS74 zoqnSdmLC5oBT1iL2mIz5e6VHF50KsVnVCN8LM8CYnZWmeEpsFcX/+n6G+K0JsYUkF5mXd 82ftpnKCaCEiWXHdUeCf7Wst/PQhxzUIjoSvFgvMZS0WJOR6bu4Yzbl+WtRUvaDjruxmHV QBUDnagbdgPSejGFdSh6UsIlECxjIM8jmsEXvF10QrDLDTZzz8CBPE3+2W3FcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705683216; a=rsa-sha256; cv=none; b=YFDUN2+/GBkiMghm2X1np/ydO0K/2Om0eP+yLhm2SJ+H1AHpC8Tn2tha8+bMVX+HyXeQ4p zNyfnIHQdIPM8Eyj55V3BgttdozWWOTStvt7fmL5VlAN5dNJcDmBha1bMcX97gEwmbdGs/ fCmLpDZMY3Qr3966lTBY1BkRJTKxWPQVz8coQnvKlCf4HfVpcMuDVi6srpRjtfjgTQqNa5 eQlzJfoizqyKF8ydVUO9vbg4rqxrBDEW9QecsZ1qr6Ff+06uZMIoj03783CvYny49LON92 hgCHjrC4HsWzNzyv9BcjUKCaYQAZFPeDDlx+CgrNdjoED8d5CQ2PviRQDaLoqQ== 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 4TGm0J49pzzyr6; Fri, 19 Jan 2024 16:53:36 +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 40JGra3b060251; Fri, 19 Jan 2024 16:53:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JGraVJ060248; Fri, 19 Jan 2024 16:53:36 GMT (envelope-from git) Date: Fri, 19 Jan 2024 16:53:36 GMT Message-Id: <202401191653.40JGraVJ060248@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: bdc2003fc517 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: bdc2003fc51734ed3bb36f82d8e7dcd5c30f41ef Auto-Submitted: auto-generated The branch stable/13 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=bdc2003fc51734ed3bb36f82d8e7dcd5c30f41ef commit bdc2003fc51734ed3bb36f82d8e7dcd5c30f41ef Author: Mark Johnston AuthorDate: 2023-12-31 23:52:52 +0000 Commit: Alexander Motin CommitDate: 2024-01-19 16:52:44 +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);