* [PATCH] [staging] beyond ARRAY_SIZE of wd->ap.wds.encryMode
@ 2009-05-20 0:36 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-05-20 0:36 UTC (permalink / raw)
To: Greg KH; +Cc: lkml, Andrew Morton
Do not go beyond ARRAY_SIZE of wd->ap.wds.encryMode
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/staging/otus/80211core/coid.c b/drivers/staging/otus/80211core/coid.c
index 88f8d34..0524e1f 100644
--- a/drivers/staging/otus/80211core/coid.c
+++ b/drivers/staging/otus/80211core/coid.c
@@ -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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-20 0:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-20 0:36 [PATCH] [staging] beyond ARRAY_SIZE of wd->ap.wds.encryMode Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).