mirror of
https://github.com/LIV2/LIV2-Xoom-GNU.git
synced 2025-12-06 00:12:52 +00:00
net: wireless: bcm4329: fix array subscript is below array bounds
Change-Id: I5d521895070d255f7ac0c9eaf262ec9f4cdd2f8a Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
This commit is contained in:
parent
71b75c879c
commit
9dfaebd96b
@ -1929,6 +1929,9 @@ dhd_open(struct net_device *net)
|
||||
ifidx = dhd_net2idx(dhd, net);
|
||||
DHD_TRACE(("%s: ifidx %d\n", __FUNCTION__, ifidx));
|
||||
|
||||
if (ifidx == DHD_BAD_IF)
|
||||
return -1;
|
||||
|
||||
if ((dhd->iflist[ifidx]) && (dhd->iflist[ifidx]->state == WLC_E_IF_DEL)) {
|
||||
DHD_ERROR(("%s: Error: called when IF already deleted\n", __FUNCTION__));
|
||||
return -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user