Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752077AbbFNMSF (ORCPT ); Sun, 14 Jun 2015 08:18:05 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35635 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbbFNMR5 (ORCPT ); Sun, 14 Jun 2015 08:17:57 -0400 From: Takeshi Yoshimura To: Greg Kroah-Hartman , Vaishali Thakkar , linux-pcmcia@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Takeshi Yoshimura Subject: [PATCH 1/1] pcmcia: Add missing free_irq() Date: Sun, 14 Jun 2015 21:14:41 +0900 Message-Id: <1434284081-7207-1-git-send-email-yos@sslab.ics.keio.ac.jp> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 29 In yenta_probe(), an irq leak potentially happens when pcmcia_register_socket() fails. I added the missed call. Signed-off-by: Takeshi Yoshimura --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/