diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-10-18 17:07:13 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-10-18 17:07:13 +0300 |
commit | ef444a0aba6d128e5ecd1c8df0f989c356f76b5d (patch) | |
tree | e4998ea5dd0cb4cd3b487b41e1f951ab51367b89 | |
parent | c91c14618fcf4ae3cf3475e5461ea8b41bf76f6d (diff) | |
parent | cf8989d20d64ad702a6210c11a0347ebf3852aa7 (diff) | |
download | linux-ef444a0aba6d128e5ecd1c8df0f989c356f76b5d.tar.xz |
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()
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-irqchip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-irqchip.c b/arch/powerpc/platforms/powernv/opal-irqchip.c index 56a1f7ce78d2..d92759c21fae 100644 --- a/arch/powerpc/platforms/powernv/opal-irqchip.c +++ b/arch/powerpc/platforms/powernv/opal-irqchip.c @@ -282,6 +282,7 @@ int __init opal_event_init(void) name, NULL); if (rc) { pr_warn("Error %d requesting OPAL irq %d\n", rc, (int)r->start); + kfree(name); continue; } } |