Unverified Commit 4d1e2474 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15661 ath5k: fix OOB in ath5k_eeprom_read_pcal_info_5111

parents ac0b92a9 92d98b9a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -746,6 +746,9 @@ ath5k_eeprom_convert_pcal_info_5111(struct ath5k_hw *ah, int mode,
			}
		}

		if (idx == AR5K_EEPROM_N_PD_CURVES)
			goto err_out;

		ee->ee_pd_gains[mode] = 1;

		pd = &chinfo[pier].pd_curves[idx];