Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2023 00:30:02 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e2b66bdb6874 - stable/13 - if_rsu: Fix mismatches in array bounds.
Message-ID:  <202305030030.3430U2lJ074424@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e2b66bdb6874604b8045e31817bb9a4009a25a89

commit e2b66bdb6874604b8045e31817bb9a4009a25a89
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-07 20:33:41 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305030030.3430U2lJ074424>