summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/regulator
diff options
context:
space:
mode:
authorPi-Hsun Shih <pihsun@chromium.org>2020-07-28 17:19:09 +0800
committerMark Brown <broonie@kernel.org>2020-07-28 16:53:14 +0100
commit176cf704425f3d22603d379ffa4a1033a24a779d (patch)
tree37fc366220602a9ee0bc23d8fcc9c577682c81f7 /Documentation/devicetree/bindings/regulator
parenta233547660a3915973d41e2a9a0923d0cf317a62 (diff)
regulator: cros-ec-regulator: Fix double free of desc->name.
The desc->name field is allocated with devm_kstrdup, but is also kfreed on the error path, causing it to be double freed. Remove the kfree on the error path. Fixes: 8d9f8d57e023 ("regulator: Add driver for cros-ec-regulator") Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org> Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20200728091909.2009771-1-pihsun@chromium.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/regulator')
0 files changed, 0 insertions, 0 deletions