From patchwork Mon Feb 10 13:00:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 3618591 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7DF33BF418 for ; Mon, 10 Feb 2014 13:01:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5C2D201CD for ; Mon, 10 Feb 2014 13:01:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D773220171 for ; Mon, 10 Feb 2014 13:01:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753140AbaBJNBY (ORCPT ); Mon, 10 Feb 2014 08:01:24 -0500 Received: from mail-ea0-f181.google.com ([209.85.215.181]:37370 "EHLO mail-ea0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752552AbaBJNAj (ORCPT ); Mon, 10 Feb 2014 08:00:39 -0500 Received: by mail-ea0-f181.google.com with SMTP id k10so764518eaj.40 for ; Mon, 10 Feb 2014 05:00:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tQGGbNeLgLB2tVn6/2Lst2+VFi1WxgzVUtfyNw9DDvw=; b=EBnJScCBdtm4OWGq87E9ZejuHpjGxNzLabJ8//89rpsAGakO052PAbWtL17RtWqOF4 YPRMHohawR9CD79mwdiTj9sEE8g3JWFHL7WRzppXfglmIUyZcqb++NsccH+YpuCQcuUe mHR2cdJY78Sz0fG3h+HAZPFPEkFsUNocLyvaXavUA2FAMX7cAvoCKWgpN/Az/NnxpfXI 76M7FhDJmVq8f22+Twj8AZeDE+yOO4ie1566+bqkduH1B3LCwKfmKQ+IasXvFCgwK1Ze YAQqTQcSEISgfQWAW6OWVe4+20yJ5/iZ2pcn/SfU7/2O5NJN0PurZE4zibqFwi5eryva xQzw== X-Gm-Message-State: ALoCoQnV0UGMTm3lpRn+Bjz5Q4Yfhm5HN+stxFG479lSWmKAb9cpre7cmarQmsaX7TLmmVcamSpH X-Received: by 10.14.3.72 with SMTP id 48mr36819356eeg.34.1392037238177; Mon, 10 Feb 2014 05:00:38 -0800 (PST) Received: from tn-HP3-PC.semihalf.com ([80.82.22.190]) by mx.google.com with ESMTPSA id u6sm54278039eep.11.2014.02.10.05.00.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Feb 2014 05:00:37 -0800 (PST) From: Tomasz Nowicki To: lenb@kernel.org, rjw@rjwysocki.net Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Tomasz Nowicki Subject: [PATCH 2/2] ACPI, PCI, ISA: Fix memory leak when there is no IRQ in the ACPI subsystem. Date: Mon, 10 Feb 2014 14:00:11 +0100 Message-Id: <1392037211-29349-2-git-send-email-tomasz.nowicki@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392037211-29349-1-git-send-email-tomasz.nowicki@linaro.org> References: <1392037211-29349-1-git-send-email-tomasz.nowicki@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Whenever we register ISA interrupt or not, we need to free the IRQ routing table entry. Signed-off-by: Tomasz Nowicki --- drivers/acpi/pci_irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index b0e31b6..6ec0f36 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c @@ -432,6 +432,7 @@ int acpi_pci_irq_enable(struct pci_dev *dev) #endif dev_warn(&dev->dev, "PCI INT %c: no GSI\n", pin_name(pin)); + kfree(entry); return 0; }