Explorar o código

Merge "qcacmn: Fix array subscript out of bound issue"

Linux Build Service Account %!s(int64=5) %!d(string=hai) anos
pai
achega
83dd46c17f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      wlan_cfg/wlan_cfg.c

+ 1 - 1
wlan_cfg/wlan_cfg.c

@@ -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);
 	}