Re: [PATCH 5/6] gpiolib: cdev: don't leak the IRQ name when the chip is removed
From: Adrian Ambrozewicz
Date: Fri Oct 16 2026 - 03:49:09 EST
On Tue, Oct 13, 2026 at 06:59:53PM +0300, Andy Shevchenko wrote:
> This can be modified a bit to prepare for this with the suggestion to check
> an irq here. So, in the previous patch you may have it as
>
> char *name = NULL;
>
> if (irq && irq_has_action(irq))
> name = free_irq(irq, dev_id);
>
> free_irq_label(name);
Agreed. Patch 3 will have it in that shape, so this one only changes
where the name comes from.
Adrian