aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-04 18:29:13 +0200
committerMark Brown <broonie@kernel.org>2026-10-04 18:29:13 +0200
commit5a26d7d96a66a7fdfff4fbcb86035161033ad407 (patch)
tree003df7a907cb5e4b4ab58699a1a90efc0b598841 /scripts
parent2f15518682c779b1014552cb2ccb4a2052f85f27 (diff)
parentb35ff7bd7dd56915a511eec56c8763ee8f9f7e9f (diff)
regulator: of: Fixes to of_regulator_bulk_get_all()
Alexey Charkov <alchark@flipper.net> says: of_regulator_bulk_get_all() only fills in the .consumer part of the struct regulator_bulk_data for the regulators it gets, leaving .supply as garbage, while the rest of the regulator core expects a meaningful name there (e.g. for error prints), causing uninitialized memory access in any failure paths in the core. It also allocates the supplies array and hands it to callers, but never says the callers need to free it (which they don't currently), causing leaks. Fix the former and document the latter in the kerneldoc to help any new users avoid the leak. Link: https://patch.msgid.link/20260930-regulator-get-all-v2-0-ca82070d22f2@flipper.net
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions