]> git.baikalelectronics.ru Git - kernel.git/commit
interconnect: exynos: fix node leak in probe PM QoS error path
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 6 Mar 2023 07:56:42 +0000 (08:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:58 +0000 (13:33 +0100)
commit2959dac6a1a331e1822afe7287b869273f0530c9
treefcf71b2c72219344b2ee045836d95713ea5954ba
parent3653b97acde6e80bd1036e16a212da4c9e0d4cab
interconnect: exynos: fix node leak in probe PM QoS error path

commit b204bc6f289de9b7939910508bd0e7c8963a94e9 upstream.

Make sure to add the newly allocated interconnect node to the provider
before adding the PM QoS request so that the node is freed on errors.

Fixes: 9d76140dcd1c ("interconnect: Add generic interconnect driver for Exynos SoCs")
Cc: stable@vger.kernel.org # 5.11
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230306075651.2449-15-johan+linaro@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/samsung/exynos.c