wifi: ath11k: Fix ath11k_htc_record flexible record
authorJeff Johnson <quic_jjohnson@quicinc.com>
Tue, 5 Dec 2023 21:00:17 +0000 (13:00 -0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 12 Dec 2023 17:12:26 +0000 (19:12 +0200)
commitadd731385eed7b2c8298e3f97250e6057d7ca9cf
tree300161a8a230d67a891fed4c9edeba3b11ee52a9
parent6783f10a1d076297a66b5b57e0a96d8c8363271b
wifi: ath11k: Fix ath11k_htc_record flexible record

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@quicinc.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231205-flexarray-htc_record-v2-1-fbb56d436951@quicinc.com
drivers/net/wireless/ath/ath11k/htc.h