]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/gpio/gpio-mpc8xxx.c
gpio: mpc8xxx: Fix a resources leak in the error handling path of 'mpc8xxx_probe()'
[mirror_ubuntu-jammy-kernel.git] / drivers / gpio / gpio-mpc8xxx.c
index 4b9157a69fca01cef1687418094a12a8a6b633e1..b5cbeca5e300587d1b78c94c784480a174a1f52f 100644 (file)
@@ -416,6 +416,8 @@ static int mpc8xxx_probe(struct platform_device *pdev)
 
        return 0;
 err:
+       if (mpc8xxx_gc->irq)
+               irq_domain_remove(mpc8xxx_gc->irq);
        iounmap(mpc8xxx_gc->regs);
        return ret;
 }