diff options
author | Andy Shevchenko <[email protected]> | 2024-06-06 23:21:02 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-06-07 14:29:41 +0100 |
commit | f82ecf76cdd477c64b09f328aaa182c1dc64dd8b (patch) | |
tree | 7bcfd04b1c87ec59aef21365e529b01ed6646904 /tools/perf/scripts/python/gecko.py | |
parent | 0ae747759930186fbc3ab470ac4e40899c52438c (diff) |
regmap: kunit: Use array_size() and sizeof(*ptr) consistently
Some of the allocations use explit sizeof(type) instead of sizeof(*ptr),
which is fragile. In particular, stress_insert() allocates double
of memory without obvious need for a test. Convert all allocations
to use array_size() and sizeof(*ptr) to eliminate similar mistakes
or wrong memory sizes.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions