[PATCH v1 0/4] regmap: Switch to use kmemdup_array()

From: Andy Shevchenko
Date: Thu Jun 06 2024 - 12:47:55 EST


Replace open coded kmemdup_array(), which does an additional
overflow check.

While at it, fix one minor issue in regcache.c.

Andy Shevchenko (4):
regmap: Switch to use kmemdup_array()
regmap: cache: Use correct type of the rb_for_each() parameter
regmap: cache: Switch to use kmemdup_array()
regmap: maple: Switch to use kmemdup_array()

drivers/base/regmap/regcache-maple.c | 13 ++++++-------
drivers/base/regmap/regcache.c | 6 +++---
drivers/base/regmap/regmap.c | 2 +-
3 files changed, 10 insertions(+), 11 deletions(-)

--
2.43.0.rc1.1336.g36b5255a03ac