git: 183783d34a6b - main - if_rsu: Fix mismatches in array bounds.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Dec 2022 20:34:19 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=183783d34a6b453137f39eac8a7b42b338c9af60 commit 183783d34a6b453137f39eac8a7b42b338c9af60 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-12-07 20:33:41 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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 *);