Jacob Keller <jacob.e.keller@xxxxxxxxx> wrote: > Replace the calculations for the payload length in > qtnf_cmd_band_fill_iftype with struct_size() and size_sub(). While > the payload length does not get directly passed to an allocation function, > the performed calculation is still calculating the size of a flexible array > structure (minus the size of a header structure). > > Signed-off-by: Jacob Keller <jacob.e.keller@xxxxxxxxx> > Cc: Igor Mitsyanko <imitsyanko@xxxxxxxxxxxxx> > Cc: Sergey Matyukevich <geomatsi@xxxxxxxxx> Patch applied to wireless-next.git, thanks. 84e9e2102bdc wifi: qtnfmac: use struct_size and size_sub for payload length -- https://patchwork.kernel.org/project/linux-wireless/patch/20230307230212.3735818-1-jacob.e.keller@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches