aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-08-16 22:21:51 +0000
committerKrzysztof Kozlowski <[email protected]>2019-08-19 17:06:14 +0000
commit3636e82135ce5ade87c238e61a315df23dbcd4d6 (patch)
treef39ab2413cb8ba8065533dc36b71345fbe17b717 /tools/perf/scripts/python/compaction-times.py
parentsoc: samsung: chipid: Convert exynos-chipid driver to use the regmap API (diff)
downloadkernel-3636e82135ce5ade87c238e61a315df23dbcd4d6.tar.gz
kernel-3636e82135ce5ade87c238e61a315df23dbcd4d6.zip
soc: samsung: chipid: Fix memory leak in error path
Currently when the call to product_id_to_soc_id fails there is a memory leak of soc_dev_attr->revision and soc_dev_attr on the error return path. Fix this by adding a common error return path that frees there obects and use this for two error return paths. Addresses-Coverity: ("Resource leak") Fixes: 3253b7b7cd44 ("soc: samsung: Add exynos chipid driver support") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions