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

Takeshi Yoshimura yos at sslab.ics.keio.ac.jp
Sun Jun 14 05:14:41 PDT 2015


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

Signed-off-by: Takeshi Yoshimura <yos at sslab.ics.keio.ac.jp>
---
 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




More information about the linux-pcmcia mailing list