diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2020-11-13 01:20:27 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-13 14:21:24 +0000 |
commit | 57a6ad482af256b2a13de14194fb8f67c1a65f10 (patch) | |
tree | d850a7f7bc007fef134fe0a6d1e1b1762705d026 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 365ec8b61689bd64d6a61e129e0319bf71336407 (diff) |
regulator: fix memory leak with repeated set_machine_constraints()
Fixed commit introduced a possible second call to
set_machine_constraints() and that allocates memory for
rdev->constraints. Move the allocation to the caller so
it's easier to manage and done once.
Fixes: aea6cb99703e ("regulator: resolve supply after creating regulator")
Cc: stable@vger.kernel.org
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Tested-by: Ahmad Fatoum <a.fatoum@pengutronix.de> # stpmic1
Link: https://lore.kernel.org/r/78c3d4016cebc08d441aad18cb924b4e4d9cf9df.1605226675.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions