Skip to content
Unverified Commit 26c2c997 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Mark Brown
Browse files

regulator: core: Release coupled_rdevs on regulator_init_coupling() error



This patch fixes memory leak which should happen if regulator's coupling
fails to initialize.

Fixes: d8ca7d18 ("regulator: core: Introduce API for regulators coupling customization")
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20191025002240.25288-1-digetx@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 55d5f62c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment