diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-06-06 23:21:02 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-06-07 16:29:41 +0300 |
commit | f82ecf76cdd477c64b09f328aaa182c1dc64dd8b (patch) | |
tree | 7bcfd04b1c87ec59aef21365e529b01ed6646904 /scripts/gdb/linux/config.py | |
parent | 0ae747759930186fbc3ab470ac4e40899c52438c (diff) | |
download | linux-f82ecf76cdd477c64b09f328aaa182c1dc64dd8b.tar.xz |
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 <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240606202102.3108729-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions