linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip/stm32: Fix "WARNING: invalid free of devm_ allocated
@ 2019-11-28  9:04 Daode Huang
  2019-12-02 12:29 ` Marc Zyngier
  0 siblings, 1 reply; 5+ messages in thread
From: Daode Huang @ 2019-11-28  9:04 UTC (permalink / raw)
  To: tglx, jason, maz, mcoquelin.stm32, alexandre.torgue, fabien.dessenne
  Cc: linux-kernel, linux-arm-kernel, linux-stm32

Since devm_ allocated data can be automaitcally released, it's no
need to free it apparently, just remove it.

Fixes: cfbf9e497094 ("irqchip/stm32: Use a platform driver for
stm32mp1-exti device")
Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
---
 drivers/irqchip/irq-stm32-exti.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index e00f2fa..46ec0af 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -779,8 +779,6 @@ static int __init stm32_exti_init(const struct stm32_exti_drv_data *drv_data,
 	irq_domain_remove(domain);
 out_unmap:
 	iounmap(host_data->base);
-	kfree(host_data->chips_data);
-	kfree(host_data);
 	return ret;
 }
 
-- 
2.8.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-02 13:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-28  9:04 [PATCH] irqchip/stm32: Fix "WARNING: invalid free of devm_ allocated Daode Huang
2019-12-02 12:29 ` Marc Zyngier
2019-12-02 12:40   ` Marc Zyngier
2019-12-02 13:22     ` Fabien DESSENNE
2019-12-02 13:32       ` 答复: " huangdaode

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).