Search Linux Wireless

Re: [PATCH v2] wifi: qtnfmac: use struct_size and size_sub for payload length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux