forked from Minki/linux
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>
This commit is contained in:
parent
afbd545d35
commit
5aaeab6606
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user