]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: versatile: realview: fix memory leak during device remove
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 Aug 2024 18:05:23 +0000 (20:05 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Aug 2024 13:40:11 +0000 (15:40 +0200)
commit1c4f26a41f9d052f334f6ae629e01f598ed93508
tree955ceb03abc99813790fd58864a142d599d2e1ea
parent874c5b601856adbfda10846b9770a6c66c41e229
soc: versatile: realview: fix memory leak during device remove

If device is unbound, the memory allocated for soc_dev_attr should be
freed to prevent leaks.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/20240825-soc-dev-fixes-v1-2-ff4b35abed83@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/soc/versatile/soc-realview.c