All of
 help / color / mirror / Atom feed
* [PATCH] RTC: rtc-omap: fix a leak of the IRQ during init failure
@ 2011-04-17  2:02 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2011-04-17  2:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: George G. Davis, Alessandro Zummo, Ingo Molnar, rtc-linux

In omap_rtc_probe error path, free_irq() was using NULL rather than the
driver data as the data pointer so free_irq() wouldn't have matched.

Signed-off-by: Axel Lin <>
 drivers/rtc/rtc-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index de0dd7b..bcae8dd 100644
--- a/drivers/rtc/rtc-omap.c
+++ b/drivers/rtc/rtc-omap.c
@@ -394,7 +394,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
 	return 0;
-	free_irq(omap_rtc_timer, NULL);
+	free_irq(omap_rtc_timer, rtc);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-17  2:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-17  2:02 [PATCH] RTC: rtc-omap: fix a leak of the IRQ during init failure Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.