aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2023-02-28 08:28:27 -0800
committerJohannes Berg <[email protected]>2023-03-07 17:13:38 +0100
commit14e05beb10326eeb997ec5ebbf10edf08e85c3f8 (patch)
tree8f9413e78a07a43d59940c90ffd4bc6356eec0ee /tools/perf/scripts/python/syscall-counts-by-pid.py
parent6933486133ecf71bbe273d7ac72cfc4a51286af3 (diff)
wifi: nl80211: convert cfg80211_scan_request allocation to *_size macros
The cfg80211_scan_request structure is followed by a flexible array member as well as several other arrays that are then stored into pointers in the structure. These are allocated currently using a simple sequence of multiplications. Replace the calculations with struct_size(), size_add(), and array_size() helper macros. These macros saturate the calculation at SIZE_MAX rather than overflowing. Note that we can't use flex_array_size() instead of array_size() because the fields are not arrays, but simple pointers. Signed-off-by: Jacob Keller <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions