From 64febdf2e2f129fe589cb41fa5ced5378d5e8ff3 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Tue, 15 Dec 2015 17:59:13 +0000 Subject: [PATCH] urtwn: fix off-by-one error. Reported by: adrian --- sys/dev/usb/wlan/if_urtwnvar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/wlan/if_urtwnvar.h b/sys/dev/usb/wlan/if_urtwnvar.h index 2c720fc3868..8eb7fb64a1e 100644 --- a/sys/dev/usb/wlan/if_urtwnvar.h +++ b/sys/dev/usb/wlan/if_urtwnvar.h @@ -170,7 +170,7 @@ struct urtwn_softc { int, uint8_t, uint32_t); int (*sc_power_on)(struct urtwn_softc *); - struct ieee80211_node *node_list[R88E_MACID_MAX]; + struct ieee80211_node *node_list[R88E_MACID_MAX + 1]; struct mtx nt_mtx; uint8_t board_type;