Re: [PATCH ath-next 1/4] wifi: ath12k: validate survey index when frequency is not found
From: Jeff Johnson
Date: Thu Feb 12 2026 - 11:48:02 EST
On 2/12/2026 4:12 AM, Михаил Лимаренко wrote:
>
> Hi Baochen,
>
> Thanks for the review, good point.
>
> You are right that the current callers already check
> idx >= ARRAY_SIZE(ar->survey), so a direct OOB write is blocked there.
>
> My intent is to make the "frequency not found" case explicit in freq_to_idx(),
> instead of returning a synthetic index, and have callers reject negative values.
> I will respin v2 with corrected commit message/subject (no OOB claim).
>
> Thanks,
> Mikhail
https://subspace.kernel.org/etiquette.html
Please don't top post and don't send HTML e-mail.
Note that lore.kernel.org doesn't archive HTML e-mails...
https://lore.kernel.org/all/1277331770898332@xxxxxxxxxxxxxx/
/jeff