Skip to contentSkip to conversation

RTC: rtc-omap: fix a leak of the IRQ during init failure

PATCH New Axel Lin 1 participant 1 message Apr 17, 2011 Real time clock (RTC)

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 RTC: rtc-omap: fix a leak of the IRQ during init failure

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.

---
 drivers/rtc/rtc-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-omap.c +1 -1
index de0dd7b..bcae8dd 100644
@@ -394,7 +394,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
 	return 0;
 
 fail2:
-	free_irq(omap_rtc_timer, NULL);
+	free_irq(omap_rtc_timer, rtc);
 fail1:
 	rtc_device_unregister(rtc);
 fail0:
Signature · 1 line
1.7.1