[PATCH 0/2] genirq: don't leak handler procfs entries

From: Bartosz Golaszewski
Date: Mon Aug 14 2023 - 05:37:34 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

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