diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-10-25 15:28:49 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-10-25 15:28:49 +0200 |
commit | 8519f9c3c3992d6634d4cd82cce2b4ed0158a412 (patch) | |
tree | cec4e449e600701d1d05e3b5fc90ee8f280dfeba | |
parent | 80957adc47fddda469daef4c96225fd73a0d9831 (diff) | |
parent | cc3b17cabe9fd2881eace5b7b1581914569d62e9 (diff) |
Merge tag 'mvebu-arm-6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into soc/drivers
mvebu arm for 6.7 (part 1)
Fix missing of_node_put in dove code base
* tag 'mvebu-arm-6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu:
soc: dove: add missing of_node_put
Link: https://lore.kernel.org/r/87zg0e8w4v.fsf@BL-laptop
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | drivers/soc/dove/pmu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/soc/dove/pmu.c b/drivers/soc/dove/pmu.c index ffc5311c0ed8..6202dbcd20a8 100644 --- a/drivers/soc/dove/pmu.c +++ b/drivers/soc/dove/pmu.c @@ -410,13 +410,16 @@ int __init dove_init_pmu(void) struct pmu_domain *domain; domain = kzalloc(sizeof(*domain), GFP_KERNEL); - if (!domain) + if (!domain) { + of_node_put(np); break; + } domain->pmu = pmu; domain->base.name = kasprintf(GFP_KERNEL, "%pOFn", np); if (!domain->base.name) { kfree(domain); + of_node_put(np); break; } |