Re: [PATCH v2] wifi: ath11k: Fix ath11k_htc_record flexible record

From: Kees Cook
Date: Wed Dec 06 2023 - 15:55:05 EST


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@xxxxxxxxxxx>

Heh, looks good. I wonder why this was a union to begin with?

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook