From nobody Wed Dec 07 20:34:19 2022 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 4NS8CH6FTpz4jmKt; Wed, 7 Dec 2022 20:34:19 +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 4NS8CH3p9Xz3jXL; Wed, 7 Dec 2022 20:34:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445259; 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=ho2evgiiZwpOrJbYqHlq8MgRffE8CzBGuWIAYbSA6wE=; b=DTNwd6VPHVHxTxPyOGxvcN0v7f/75ELz4Y/BeJkLdQ15DLvnUcAL0+L936TjOMa+XQ5DAr dedtdUQo9Hsg25mDRqcqaLzbzUHxJ7XHHsqdGjhfXqNQCKgirT9lB4cdmnd3TD5EeJj09f 8LiPRixBAmGnO2tZAYt2+mC0fQ84bhfb7CQaX0XLxw8jIzTaQmFUvCRl2gLzpJV5nNAX7O WyjXrX44SXHqWm9a+bu3lVtgkBRIO3KxPNkSrz7/a51TALynSXME6V/oWgpy8WfgvyfN2B pC5KkK8CoRJhTJ9R5UnQ6GgaQUgeom+4KnBM7cs8vmHChYqtJLVCUK0ZxTzQaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445259; 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=ho2evgiiZwpOrJbYqHlq8MgRffE8CzBGuWIAYbSA6wE=; b=SbyByrSLL+41Qzpun07KI3PLhLQjtz5GmuVXDkH8yFDRmaoNaVg2jRn1jVeVzQuX+/7P6R nXnYxLmUkrcKSqdqNnxygEw/TreFnfOpiP8gdqdOgpkS3rHk8CsYEgw1sSBjs+pGBtTatM BW9FSLY7zV1TK7Uv0fvwNKtB+0G8SMTJ5lX1JoiANGtZKl6HUAmCQUUe5CsfnB6guZRyt2 D+s3EL1ea1hU7MJMYqymxKyYUp1YUTtr5RhUAQ324a4gn+07sPHtgQUpBPkQTtOuWTaBKs GOII7fQ1Sx5h/mUunfPabe537G5NcgRU/qaiqGutZcZwv0UEKbP9CY8pINpolw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670445259; a=rsa-sha256; cv=none; b=dHlqxRlxzBQwRV9DOYNARAJ7Ids2yhd35Fle4UgLMtMy8uWUPe3b3z/ScYX4q36Typ7RQ/ L73JCCngMEtrHg0UUtigKkREqMixuCe6QdFMzymkKCBH0fUm/XthHjVIMvP0V3aHl2/XVp 0i00uo7L7F3EfAd1Lxx7v/Hn0WaKxnnkGV8utfZ0HudTwfKSl1qM9JRIgCbxPcMhA/oTsk GsPmZSNWaRfhsTHrxMj5P5vsjPnKqUnhVx//5/Px/zMxVydzz11Iumli+coECOgvC8ss/X aZvfs5fBAnqOj0niQE3l4YLUhy+6bxGTCDan/nIMrYCDaG+PEwEEI14d89nSBQ== 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 4NS8CH2tKgzVcj; Wed, 7 Dec 2022 20:34:19 +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 2B7KYJ89088765; Wed, 7 Dec 2022 20:34:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B7KYJJx088764; Wed, 7 Dec 2022 20:34:19 GMT (envelope-from git) Date: Wed, 7 Dec 2022 20:34:19 GMT Message-Id: <202212072034.2B7KYJJx088764@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: 183783d34a6b - main - if_rsu: Fix mismatches in array bounds. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 183783d34a6b453137f39eac8a7b42b338c9af60 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=183783d34a6b453137f39eac8a7b42b338c9af60 commit 183783d34a6b453137f39eac8a7b42b338c9af60 Author: John Baldwin AuthorDate: 2022-12-07 20:33:41 +0000 Commit: John Baldwin CommitDate: 2022-12-07 20:33:41 +0000 if_rsu: Fix mismatches in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37551 --- sys/dev/usb/wlan/if_rsu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/wlan/if_rsu.c b/sys/dev/usb/wlan/if_rsu.c index 6913a496301a..b1939a0ab9f2 100644 --- a/sys/dev/usb/wlan/if_rsu.c +++ b/sys/dev/usb/wlan/if_rsu.c @@ -163,9 +163,10 @@ static usb_callback_t rsu_bulk_rx_callback; static usb_error_t rsu_do_request(struct rsu_softc *, struct usb_device_request *, void *); static struct ieee80211vap * - rsu_vap_create(struct ieee80211com *, const char name[], - int, enum ieee80211_opmode, int, const uint8_t bssid[], - const uint8_t mac[]); + rsu_vap_create(struct ieee80211com *, const char name[IFNAMSIZ], + int, enum ieee80211_opmode, int, + const uint8_t bssid[IEEE80211_ADDR_LEN], + const uint8_t mac[IEEE80211_ADDR_LEN]); static void rsu_vap_delete(struct ieee80211vap *); static void rsu_scan_start(struct ieee80211com *); static void rsu_scan_end(struct ieee80211com *);