From nobody Wed May 3 00:30:02 2023 X-Original-To: dev-commits-src-branches@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 4Q9yWt4X5nz48NZ0; Wed, 3 May 2023 00:30:02 +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 4Q9yWt3C8Tz3nfJ; Wed, 3 May 2023 00:30:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073802; 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=QIfwUL3NX6SNDJX9lLzffiyl1m6QCExVyQd1ojBcLnU=; b=ZtmIo3tUJuvzxuNtBuCA41qm27gJ/1jVJ4EdeRBlrw6WsItNqFnSBkzq41nPac+LdcJrVQ h5omAzIkA7LWY5Zy3f/04yBM4EI2miifpZWY0s9YhchtpXcdVqyjEzBPFRWYV0W6KAIIbd jHN9ghHP1MfKqZzHAA97ovXUU2aKOiOYv+vN9emF9xjuZB0nQQXG4YaMX7fibo3KeAQinE fGLkuuHBmjUcF5GMzs/eiTAALdjZPaBKzSIydrHmtOTF2EtPDEaKzusIGWSeo5M7Sdk52T VUWEzZSrt+U6VN0r3hCI+Do/OvNo2eN+CQ+grced/0UHk0uDQlLWeU10bQyg9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073802; 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=QIfwUL3NX6SNDJX9lLzffiyl1m6QCExVyQd1ojBcLnU=; b=jAE3wyEbLu6f+iZayMFsNQop9UHm5z5KL6alfGR7VhJNxzVk3LcFQueS/WU+ZP58AZZfvI 7YtMdPWmYL78pTaWDYNyS+0m6AMAQqjxwlobRJ193eu/fEL7Fm8s0jWbyMBNBhxyUGJN1j 6wDDTdapADiFGzWAx50shscELGWGolzLck0YUbHo+KsvuOpPXsD2hw+QXSRxguQRLFX6Cn yzB8vRx20Y2I/JrODHoB9drIrSgWwd5n8ixFoA2ijZbe4XAkE9U3W4e1f07J3pV7HZJgp9 ZC5nzxwR6gGXVR29g3oJ5o/gNHF7jcI4FuE1iZVc7Vcg+fUS6pqO0iG2WFxFlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073802; a=rsa-sha256; cv=none; b=WxFLI1KIeaWMskzjQW1g12wUuF2q73zxIF34YGyr2lPpS/eMEb+kqavhmvOoGCCrTbtKP6 H0JyBAsT6ObO/8lT32l2y5gndJAtpU+3b9qzbhfCNK8R10qLQIzfRX3tNRjY7UbrF2od6b 8DQaOHYYox89vs6lEZUz2Vk1OK3jiDvPYZsFKVv5qifZebdPqRbEbaP7a8QBbn34Y0hmYm tzB4vu1pUgCOxqpGCWEogZ9sIWVP4SWmwgICgznrZYztohukIxe8X8LveykK2yx3odXJt0 RJPyN0Q9BQes5JcIhaNrMj0O6VPcznaCqov1VmRS/j/PWo03lyTupQ5S73n+iQ== 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 4Q9yWt2HPyz18X0; Wed, 3 May 2023 00:30:02 +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 3430U2gc074426; Wed, 3 May 2023 00:30:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430U2lJ074424; Wed, 3 May 2023 00:30:02 GMT (envelope-from git) Date: Wed, 3 May 2023 00:30:02 GMT Message-Id: <202305030030.3430U2lJ074424@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: e2b66bdb6874 - stable/13 - if_rsu: Fix mismatches in array bounds. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: e2b66bdb6874604b8045e31817bb9a4009a25a89 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e2b66bdb6874604b8045e31817bb9a4009a25a89 commit e2b66bdb6874604b8045e31817bb9a4009a25a89 Author: John Baldwin AuthorDate: 2022-12-07 20:33:41 +0000 Commit: John Baldwin CommitDate: 2023-05-03 00:24:47 +0000 if_rsu: Fix mismatches in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37551 (cherry picked from commit 183783d34a6b453137f39eac8a7b42b338c9af60) --- 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 747e3532cde4..a3a28b0c4cde 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 *);