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

Bartosz Golaszewski posted 2 patches 2 years, 4 months ago
kernel/irq/internals.h |  5 ++---
kernel/irq/manage.c    |  6 +++---
kernel/irq/proc.c      | 17 ++++++++++++++++-
3 files changed, 21 insertions(+), 7 deletions(-)
[PATCH 0/2] genirq: don't leak handler procfs entries
Posted by Bartosz Golaszewski 2 years, 4 months ago
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