summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2023-03-08 02:02:12 +0300
committerKalle Valo <kvalo@kernel.org>2023-03-13 16:44:29 +0300
commit84e9e2102bdc4f60ce131dcb74046219dc4425ae (patch)
tree1a9cb7abad3e1b7f55577d4a3a7170e9bc665626 /tools/perf/scripts/python/failed-syscalls-by-pid.py
parenta23c82e006db2f073fb65da8762f63735a510409 (diff)
downloadlinux-84e9e2102bdc4f60ce131dcb74046219dc4425ae.tar.xz
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
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions