Skip to content

Commit ef444a0

Browse files
committed
Merge tag 'powerpc-6.12-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fix from Madhavan Srinivasan: - To prevent possible memory leak, free "name" on error in opal_event_init() Thanks to Michael Ellerman and 2639161967. * tag 'powerpc-6.12-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/powernv: Free name on error in opal_event_init()
2 parents c91c146 + cf8989d commit ef444a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/platforms/powernv/opal-irqchip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ int __init opal_event_init(void)
282282
name, NULL);
283283
if (rc) {
284284
pr_warn("Error %d requesting OPAL irq %d\n", rc, (int)r->start);
285+
kfree(name);
285286
continue;
286287
}
287288
}

0 commit comments

Comments
 (0)