diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-05-20 02:36:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-19 11:00:37 -0700 |
commit | 5aaeab6606dc06bea229bf2774ac1661923c2f07 (patch) | |
tree | c77a859ce14c3529c81da14cca7f6ffc1e4c794f /drivers/staging/otus | |
parent | afbd545d35fe8ae67e560b0e1ab348fb2338c06d (diff) | |
download | op-kernel-dev-5aaeab6606dc06bea229bf2774ac1661923c2f07.zip op-kernel-dev-5aaeab6606dc06bea229bf2774ac1661923c2f07.tar.gz |
Staging: otus: beyond ARRAY_SIZE of wd->ap.wds.encryMode
Do not go beyond ARRAY_SIZE of wd->ap.wds.encryMode
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/otus')
-rw-r--r-- | drivers/staging/otus/80211core/coid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/otus/80211core/coid.c b/drivers/staging/otus/80211core/coid.c index 88f8d349..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; } |