aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorPi-Hsun Shih <[email protected]>2020-07-28 09:19:09 +0000
committerMark Brown <[email protected]>2020-07-28 15:53:14 +0000
commit176cf704425f3d22603d379ffa4a1033a24a779d (patch)
tree37fc366220602a9ee0bc23d8fcc9c577682c81f7 /scripts/gcc-plugins/sancov_plugin.c
parentplatform/chrome: cros_ec: Fix host command for regulator control. (diff)
downloadkernel-176cf704425f3d22603d379ffa4a1033a24a779d.tar.gz
kernel-176cf704425f3d22603d379ffa4a1033a24a779d.zip
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 <[email protected]> Reviewed-by: Enric Balletbo i Serra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions