Skip to content
Commit 3636e821 authored by Colin Ian King's avatar Colin Ian King Committed by Krzysztof Kozlowski
Browse files

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: 3253b7b7 ("soc: samsung: Add exynos chipid driver support")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 40d8aff6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment