mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "qcacmn: Fix array subscript out of bound issue"
This commit is contained in:
commit
83dd46c17f
1 changed files with 1 additions and 1 deletions
|
|
@ -713,7 +713,7 @@ int wlan_cfg_get_target_pdev_id(struct wlan_cfg_dp_soc_ctxt *cfg,
|
|||
{
|
||||
int idx;
|
||||
|
||||
for (idx = 0; idx < MAX_NUM_LMAC_HW; idx++) {
|
||||
for (idx = 0; idx < MAX_PDEV_CNT; idx++) {
|
||||
if (cfg->hw_macid[idx] == hw_macid)
|
||||
return (idx + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue