[PATCH v2] wifi: ath11k: Fix ath11k_htc_record flexible record
Gustavo A. R. Silva
gustavo at embeddedor.com
Wed Dec 6 13:23:31 PST 2023
On 12/6/23 14:55, Kees Cook wrote:
> On Tue, Dec 05, 2023 at 01:00:17PM -0800, Jeff Johnson wrote:
>> Transform the zero-length ath11k_htc_record::credit_report array into
>> a proper flexible array. Since this is the only array in
>> ath11k_htc_record, remove the unnecessary union.
>>
>> Signed-off-by: Jeff Johnson <quic_jjohnson at quicinc.com>
>
> Heh, looks good. I wonder why this was a union to begin with?
It used to contain a couple of members:
https://lore.kernel.org/linux-wireless/20231127-flexarray-htc_record-v1-3-6be1f36126fd@quicinc.com/
https://lore.kernel.org/linux-wireless/4f2a486c-c6de-43e4-8bb6-bdd3f819b0a9@embeddedor.com/
--
Gustavo
>
> Reviewed-by: Kees Cook <keescook at chromium.org>
>
More information about the ath11k
mailing list