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: 24406 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CD4FA20143 for ; Mon, 10 Feb 2014 13:00:56 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf13647161pbb.6 for ; Mon, 10 Feb 2014 05:00:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=jA/dNbdUsb+80zIE1NTR575A3E/Qwvt8SEHfICEPOJ0=; b=QeN/GWC3ibRFDtnkcywYaUwpS9P98aB/qu0TijijaEG/knddm8HzMXNM4cT7WSjNYS 0UjBeZg1lBHrHWhHOUQcM3Oz//FvxYj44j1KPrMao9RDrhCH7ICedPm6QxNl5bfTrZys jy9x5fOjqUMoU9cCDFGa/H1j3uCKxnxVOQJijxb9DJZF/JuBC9MWy6Yk1G/f7YFTvR7y 8cAjuWAvv4I3+dlwGmwdj7RUf2hBfFPzpkaZL3Ji1eSkE7lHGa9o3ctq8HHYgwQ4V7cf Eofui8KOFCdWKguKJzmieUM9/qaJzZyBO59jV6o25nv1EAk40b821IMZmallOs/pl2m/ JRbA== X-Gm-Message-State: ALoCoQl4YWPD9TA1ISvYa757aS7lGsHQCtlihv5IbzG7fnY8V2oZG7AAhaZAOfRqXtOYsXRu713Y X-Received: by 10.66.26.132 with SMTP id l4mr9470195pag.2.1392037255923; Mon, 10 Feb 2014 05:00:55 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.98 with SMTP id b89ls1995585qgd.9.gmail; Mon, 10 Feb 2014 05:00:55 -0800 (PST) X-Received: by 10.58.66.137 with SMTP id f9mr23782178vet.11.1392037255776; Mon, 10 Feb 2014 05:00:55 -0800 (PST) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id zp2si4750921vec.122.2014.02.10.05.00.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Feb 2014 05:00:55 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id le5so4719125vcb.16 for ; Mon, 10 Feb 2014 05:00:55 -0800 (PST) X-Received: by 10.52.170.241 with SMTP id ap17mr19937418vdc.13.1392037255701; Mon, 10 Feb 2014 05:00:55 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp166020vcz; Mon, 10 Feb 2014 05:00:51 -0800 (PST) X-Received: by 10.66.141.231 with SMTP id rr7mr25146428pab.41.1392037250972; Mon, 10 Feb 2014 05:00:50 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id of8si15347890pbc.193.2014.02.10.05.00.49; Mon, 10 Feb 2014 05:00:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752987AbaBJNAq (ORCPT + 27 others); Mon, 10 Feb 2014 08:00:46 -0500 Received: from mail-ee0-f49.google.com ([74.125.83.49]:59757 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752569AbaBJNAj (ORCPT ); Mon, 10 Feb 2014 08:00:39 -0500 Received: by mail-ee0-f49.google.com with SMTP id d17so2908766eek.22 for ; Mon, 10 Feb 2014 05:00:38 -0800 (PST) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tomasz.nowicki@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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; }