linux-stable/drivers/net/wireless/quantenna/qtnfmac
Jacob Keller 84e9e2102b wifi: qtnfmac: use struct_size and size_sub for payload length
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@intel.com>
Cc: Igor Mitsyanko <imitsyanko@quantenna.com>
Cc: Sergey Matyukevich <geomatsi@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230307230212.3735818-1-jacob.e.keller@intel.com
2023-03-13 15:44:29 +02:00
..
pcie qtnfmac: switch to netif_napi_add_weight() 2022-05-06 08:47:52 +03:00
bus.h
cfg80211.c treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
cfg80211.h
commands.c wifi: qtnfmac: use struct_size and size_sub for payload length 2023-03-13 15:44:29 +02:00
commands.h
core.c wireless: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-20 12:39:42 +03:00
core.h
debug.c
debug.h
event.c wifi: cfg80211: include puncturing bitmap in channel switch events 2023-02-14 12:14:39 +01:00
event.h
Kconfig
Makefile
qlink.h wifi: qtnfmac: fix repeated words in comments 2022-07-18 15:09:03 +03:00
qlink_util.c
qlink_util.h
qtn_hw_ids.h
shm_ipc.c
shm_ipc.h
shm_ipc_defs.h
switchdev.h
trans.c
trans.h
util.c
util.h