mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-11 11:09:13 +00:00
84e9e2102b
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 |
||
---|---|---|
.. | ||
pcie | ||
bus.h | ||
cfg80211.c | ||
cfg80211.h | ||
commands.c | ||
commands.h | ||
core.c | ||
core.h | ||
debug.c | ||
debug.h | ||
event.c | ||
event.h | ||
Kconfig | ||
Makefile | ||
qlink.h | ||
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 |