Re: [PATCH][next] soc: samsung: exynos-chipid: fix memory leak

2019-08-19 Thread Krzysztof Kozlowski
On Fri, Aug 16, 2019 at 11:21:51PM +0100, Colin King wrote: > From: Colin Ian King > > 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

[PATCH][next] soc: samsung: exynos-chipid: fix memory leak

2019-08-16 Thread Colin King
From: Colin Ian King 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-Coverit