From nobody Wed Dec 07 20:34:10 2022 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 4NS8C645sZz4jlnK; Wed, 7 Dec 2022 20:34:10 +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 4NS8C637dbz3hpm; Wed, 7 Dec 2022 20:34:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445250; 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=2Utu9j+YiCXkRs67uYpIvgUaCeRmgjuAN6Zr56pXhck=; b=lsn4hqAO8x5FuvV5kbTLwQdxN5D1I3SApiNf7pELd+IrTKNR3pDQ2HidV0y3NsV52vNeT8 cRJePkZ5q7+kUlRH2AULo/YxekfYhaUR++AC3M4h2r2Gfq9vW2l5n7SQ9FFjoN67o0wGWZ 9Xldey9xyByjLS8KdDQg8ma0kVlgaVMrukYUOZgVIiPAA/upAgkSqEJu2cW0ouqjYqCeh4 GfYNu4t34NA6TjCqdj9PzxCTCZeZtZTb5U3FquOzIikbUDuf3LbvK7xe0kmXnIJsEcdm+C zFXncEeLcACSl0+qT00QR14NQI92j1ub3X96VHjHBGlOicZwPE31ExaGMPIPkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445250; 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=2Utu9j+YiCXkRs67uYpIvgUaCeRmgjuAN6Zr56pXhck=; b=cmBxPY0PJ1ZjSTdiqIiUqGSAp1gF9TMnDHLhrEOBzfaZx0cx7ZIykz4qnf6PBA/YtUOsfn mWeUV60Ao9Wdom+nkKIkWZJxG0HPddlFluZ1+AODVEYFjopn3JiAS0cTBV6fmRgSOPWZlW avxjvW9MCsphSKZ3zKbmij4N9gw3ZEybCw4UPESwsqAXSYwc9rkreXwQZCN+J1mwhwNlSM 7G80h4UxmNr3ufcEQxdy5SN7hlB3vZzPcbdPn07phQ2fOvZBAhB0aAZykqitF7jvHqNei0 3aoFR/uOnIVWY0lKcq+aea1pkbN8N0ytA4KmXysYTS1MWP/g1b42lESac87EEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670445250; a=rsa-sha256; cv=none; b=bhfcNRWRv4NvypaQZi1v2UNdSB8l2WnLVaaw9sm7WHI7rx56KinMVwWzsdKy5vu+W/Y86A lvSnKJbm8FbSl1GdWi4AI2eOy+tVXNxh2N1+vQkyxfB7PHH1dJrrG7LWhUU+L/f5PBITwn 0/9dkmo1qx/O8jKtbkHYGt1FeINfLWBGDAFFt6nygFMjhPdwyFRKUlY3PLOkQCyDNHUW64 Fo8OOiKFqaZBYv01qXF1zaLjwIjYF654ZoLZhIP6zEuqFNCNP+FlozhoC/j4gKCSFhpEYQ SXFlW7cJAK7BWYLzDLTKHiAH280b6MRDBUpsZBWU/en7O9Ua897bxU2Hk8DTew== 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 4NS8C620thzVBY; Wed, 7 Dec 2022 20:34:10 +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 2B7KYA99088553; Wed, 7 Dec 2022 20:34:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B7KYAGY088552; Wed, 7 Dec 2022 20:34:10 GMT (envelope-from git) Date: Wed, 7 Dec 2022 20:34:10 GMT Message-Id: <202212072034.2B7KYAGY088552@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: f322a6cef0b1 - main - iwi: Fix mismatch in array bounds. 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: f322a6cef0b142bd65c3750139ea1801513b864a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f322a6cef0b142bd65c3750139ea1801513b864a commit f322a6cef0b142bd65c3750139ea1801513b864a Author: John Baldwin AuthorDate: 2022-12-07 20:31:01 +0000 Commit: John Baldwin CommitDate: 2022-12-07 20:31:01 +0000 iwi: Fix mismatch in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37543 --- sys/dev/iwi/if_iwi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 9cf08e7d434f..8cd27091d2d9 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -173,7 +173,7 @@ static void iwi_rx_intr(struct iwi_softc *); static void iwi_tx_intr(struct iwi_softc *, struct iwi_tx_ring *); static void iwi_intr(void *); static int iwi_cmd(struct iwi_softc *, uint8_t, void *, uint8_t); -static void iwi_write_ibssnode(struct iwi_softc *, const u_int8_t [], int); +static void iwi_write_ibssnode(struct iwi_softc *, const u_int8_t [IEEE80211_ADDR_LEN], int); static int iwi_tx_start(struct iwi_softc *, struct mbuf *, struct ieee80211_node *, int); static int iwi_raw_xmit(struct ieee80211_node *, struct mbuf *,