Messages in this thread | | | From | Bartosz Golaszewski <> | Subject | [PATCH 0/2] genirq: don't leak handler procfs entries | Date | Mon, 14 Aug 2023 11:36:19 +0200 |
| |
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
When we remove the procfs entry for an irq desc that's still in use, we leak the procfs entries created per handler. We need to go through the irqaction chain and remove all entries before finally removing the irq's top procfs directory.
First patch drops an unused argument from unregister_handler_proc(), the second fixes the actual leak.
Bartosz Golaszewski (2): genirq: proc: drop unused argument from unregister_handler_proc() genirq: proc: fix a procfs entry leak
kernel/irq/internals.h | 5 ++--- kernel/irq/manage.c | 6 +++--- kernel/irq/proc.c | 17 ++++++++++++++++- 3 files changed, 21 insertions(+), 7 deletions(-)
-- 2.39.2
| |