[PATCH 1/1] pcmcia: Add missing free_irq()

From: Takeshi Yoshimura
Date: Sun Jun 14 2015 - 08:18:12 EST


In yenta_probe(), an irq leak potentially happens when
pcmcia_register_socket() fails. I added the missed call.

Signed-off-by: Takeshi Yoshimura <yos@xxxxxxxxxxxxxxxxxxxx>
---
drivers/pcmcia/yenta_socket.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c
index 965bd84..7922e30f 100644
--- a/drivers/pcmcia/yenta_socket.c
+++ b/drivers/pcmcia/yenta_socket.c
@@ -1269,6 +1269,8 @@ static int yenta_probe(struct pci_dev *dev, const struct pci_device_id *id)
pcmcia_unregister_socket(&socket->socket);
}

+ if (socket->cb_irq)
+ free_irq(socket->irq, socket);
unmap:
iounmap(socket->base);
release:
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/