lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-46f920d8a970cf102e18f25814a4ff4729ad8537@git.kernel.org>
Date:	Sun, 20 Mar 2016 12:12:49 -0700
From:	tip-bot for Axel Lin <tipbot@...or.com>
To:	linux-tip-commits@...r.kernel.org
Cc:	axel.lin@...ics.com, thierry.reding@...il.com, mingo@...nel.org,
	hpa@...or.com, linux-kernel@...r.kernel.org, tglx@...utronix.de,
	swarren@...dotorg.org, gnurou@...il.com, marc.zyngier@....com,
	jason@...edaemon.net
Subject: [tip:irq/urgent] irqchip/tegra: Switch to use
 irq_domain_free_irqs_common

Commit-ID:  46f920d8a970cf102e18f25814a4ff4729ad8537
Gitweb:     http://git.kernel.org/tip/46f920d8a970cf102e18f25814a4ff4729ad8537
Author:     Axel Lin <axel.lin@...ics.com>
AuthorDate: Sun, 20 Mar 2016 20:44:05 +0800
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Sun, 20 Mar 2016 20:08:28 +0100

irqchip/tegra: Switch to use irq_domain_free_irqs_common

Current code calls irq_domain_alloc_irqs_parent() in .alloc,
so it should call irq_domain_free_irqs_parent() accordingly in .free.
Fix it by switching to use irq_domain_free_irqs_common() instead of
the open-coded private implementation.

Signed-off-by: Axel Lin <axel.lin@...ics.com>
Cc: Alexandre Courbot <gnurou@...il.com>
Cc: Jason Cooper <jason@...edaemon.net>
Cc: Stephen Warren <swarren@...dotorg.org>
Cc: Marc Zyngier <marc.zyngier@....com>
Cc: Thierry Reding <thierry.reding@...il.com>
Cc: linux-tegra@...r.kernel.org
Link: http://lkml.kernel.org/r/1458477845.28679.1.camel@ingics.com
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>

---
 drivers/irqchip/irq-tegra.c | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/drivers/irqchip/irq-tegra.c b/drivers/irqchip/irq-tegra.c
index 121ec30..50be963 100644
--- a/drivers/irqchip/irq-tegra.c
+++ b/drivers/irqchip/irq-tegra.c
@@ -275,22 +275,10 @@ static int tegra_ictlr_domain_alloc(struct irq_domain *domain,
 					    &parent_fwspec);
 }
 
-static void tegra_ictlr_domain_free(struct irq_domain *domain,
-				    unsigned int virq,
-				    unsigned int nr_irqs)
-{
-	unsigned int i;
-
-	for (i = 0; i < nr_irqs; i++) {
-		struct irq_data *d = irq_domain_get_irq_data(domain, virq + i);
-		irq_domain_reset_irq_data(d);
-	}
-}
-
 static const struct irq_domain_ops tegra_ictlr_domain_ops = {
 	.translate	= tegra_ictlr_domain_translate,
 	.alloc		= tegra_ictlr_domain_alloc,
-	.free		= tegra_ictlr_domain_free,
+	.free		= irq_domain_free_irqs_common,
 };
 
 static int __init tegra_ictlr_init(struct device_node *node,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ