[PATCH 2/6] wifi: ath10k: use flexible arrays for WMI start scan TLVs

2023-12-13 Thread Jeff Johnson
Currently ath10k defines the following struct: struct wmi_start_scan_tlvs { u8 tlvs[0]; } __packed; Per the guidance in [1] this should be a flexible array. However, a direct replace to u8 tlvs[] results in the compilation error: flexible array member in a st

Re: [PATCH 2/6] wifi: ath10k: use flexible arrays for WMI start scan TLVs

2023-12-13 Thread Kees Cook
On Wed, Dec 13, 2023 at 09:06:40AM -0800, Jeff Johnson wrote: > Currently ath10k defines the following struct: > struct wmi_start_scan_tlvs { > u8 tlvs[0]; > } __packed; > > Per the guidance in [1] this should be a flexible array. However, a > direct replace to u8 tlvs[]

Re: [PATCH 2/6] wifi: ath10k: use flexible arrays for WMI start scan TLVs

2023-12-13 Thread Gustavo A. R. Silva
On 12/13/23 11:06, Jeff Johnson wrote: Currently ath10k defines the following struct: struct wmi_start_scan_tlvs { u8 tlvs[0]; } __packed; Per the guidance in [1] this should be a flexible array. However, a direct replace to u8 tlvs[] results in the compilation