Re: [PATCH 3/3] parisc: Fix IRQ leak in LASI driver

Helge Deller <[email protected]>
Newsgroups org.kernel.vger.linux-parisc,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 5/3/26 06:17, Hongling Zeng wrote:
> When request_irq() succeeds but gsc_common_setup() fails later,
> the IRQ is never released. Fix this by adding proper error handling
> with goto labels to ensure resources are released in LIFO order.
> 
> Detected by Smatch:
>    drivers/parisc/lasi.c:216 lasi_init_chip() warn: 'lasi->gsc_irq.irq'
> from request_irq() not released on lines: 207.
> 
> Reported-by: kernel test robot <[email protected]>
> Reported-by: Dan Carpenter <[email protected]>
> Closes: https://lore.kernel.org/r/[email protected]/
> Signed-off-by: Hongling Zeng <[email protected]>
> ---
>   drivers/parisc/lasi.c | 12 ++++++++----
>   1 file changed, 8 insertions(+), 4 deletions(-)

Patch applied to parisc git tree.

Thanks!
Helge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.