]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: versatile: realview: fix soc_dev leak during device remove
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 Aug 2024 18:05:24 +0000 (20:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:43 +0000 (16:33 +0200)
commita31e6d3207ceb942bfffb04c0f21d5b4e4aed214
tree76c00a11323681097be9eb162d69b5475245034a
parent15c0bd2062e3b0f48127a50f28f597b448d1df7f
soc: versatile: realview: fix soc_dev leak during device remove

[ Upstream commit c774f2564c0086c23f5269fd4691f233756bf075 ]

If device is unbound, the soc_dev should be unregistered to prevent
memory leak.

Fixes: a2974c9c1f83 ("soc: add driver for the ARM RealView")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/20240825-soc-dev-fixes-v1-3-ff4b35abed83@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/versatile/soc-realview.c