Skip to content

Commit 8519f9c

Browse files
committed
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 <[email protected]>
2 parents 80957ad + cc3b17c commit 8519f9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/soc/dove/pmu.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,16 @@ int __init dove_init_pmu(void)
410410
struct pmu_domain *domain;
411411

412412
domain = kzalloc(sizeof(*domain), GFP_KERNEL);
413-
if (!domain)
413+
if (!domain) {
414+
of_node_put(np);
414415
break;
416+
}
415417

416418
domain->pmu = pmu;
417419
domain->base.name = kasprintf(GFP_KERNEL, "%pOFn", np);
418420
if (!domain->base.name) {
419421
kfree(domain);
422+
of_node_put(np);
420423
break;
421424
}
422425

0 commit comments

Comments
 (0)