Skip to contentSkip to conversation

beyond ARRAY_SIZE of wd->ap.wds.encryMode

PATCH New Roel Kluin 1 participant 1 message May 20, 2009 Staging

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 beyond ARRAY_SIZE of wd->ap.wds.encryMode

Do not go beyond ARRAY_SIZE of wd->ap.wds.encryMode

---

drivers/staging/otus/80211core/coid.c +1 -1
index 88f8d34..0524e1f 100644
@@ -2013,7 +2013,7 @@ u16_t zfiConfigWdsPort(zdev_t* dev, u8_t wdsPortId, u16_t flag, u16_t* wdsAddr,
 
     zmw_get_wlan_dev(dev);
 
-    if (wdsPortId > ZM_MAX_WDS_SUPPORT)
+    if (wdsPortId >= ZM_MAX_WDS_SUPPORT)
     {
         return ZM_ERR_WDS_PORT_ID;
     }