Skip to content

Commit add7313

Browse files
Jeff Johnsonkvalo
authored andcommitted
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 <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6783f10 commit add7313

File tree

1 file changed

+1
-3
lines changed
  • drivers/net/wireless/ath/ath11k

1 file changed

+1
-3
lines changed

drivers/net/wireless/ath/ath11k/htc.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ struct ath11k_htc_credit_report {
151151

152152
struct ath11k_htc_record {
153153
struct ath11k_htc_record_hdr hdr;
154-
union {
155-
struct ath11k_htc_credit_report credit_report[0];
156-
};
154+
struct ath11k_htc_credit_report credit_report[];
157155
} __packed __aligned(4);
158156

159157
enum ath11k_htc_svc_gid {

0 commit comments

Comments
 (0)