]> git.baikalelectronics.ru Git - kernel.git/commit
soc: amlogic: Fix refcount leak in meson-secure-pwrc.c
authorLiang He <windhl@126.com>
Thu, 16 Jun 2022 14:49:15 +0000 (22:49 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 17 Jun 2022 07:40:40 +0000 (09:40 +0200)
commit7db0fac42be11a34e1450081678f9ac86ce30bdd
tree9724792b8061815887aa691d6ea71e06ccdf4c77
parent4c53b9f1a4d66ffa3a4c7f8667e63e1686ad943d
soc: amlogic: Fix refcount leak in meson-secure-pwrc.c

In meson_secure_pwrc_probe(), there is a refcount leak in one fail
path.

Signed-off-by: Liang He <windhl@126.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Fixes: a029119861a4 ("soc: amlogic: Add support for Secure power domains controller")
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220616144915.3988071-1-windhl@126.com
drivers/soc/amlogic/meson-secure-pwrc.c