]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/edac/thunderx_edac.c
EDAC, thunderx: Fix memory leak in thunderx_l2c_threaded_isr()
[mirror_ubuntu-bionic-kernel.git] / drivers / edac / thunderx_edac.c
index 4803c6468bab4d18eafe65514344c2de02dd909c..17e54f12ddb6ad92493af14e5a02c52392c6fbc7 100644 (file)
@@ -1880,7 +1880,7 @@ static irqreturn_t thunderx_l2c_threaded_isr(int irq, void *irq_id)
        default:
                dev_err(&l2c->pdev->dev, "Unsupported device: %04x\n",
                        l2c->pdev->device);
-               return IRQ_NONE;
+               goto err_free;
        }
 
        while (CIRC_CNT(l2c->ring_head, l2c->ring_tail,
@@ -1902,7 +1902,7 @@ static irqreturn_t thunderx_l2c_threaded_isr(int irq, void *irq_id)
                l2c->ring_tail++;
        }
 
-       return IRQ_HANDLED;
+       ret = IRQ_HANDLED;
 
 err_free:
        kfree(other);