projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1791f88
)
RTC: rtc-omap: Fix a leak of the IRQ during init failure
author
Axel Lin
<
[email protected]
>
Sun, 17 Apr 2011 02:02:58 +0000
(10:02 +0800)
committer
Thomas Gleixner
<
[email protected]
>
Mon, 18 Apr 2011 08:39:38 +0000
(10:39 +0200)
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 <
[email protected]
>
Cc: "George G. Davis" <
[email protected]
>
Cc: Alessandro Zummo <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/%3C1303005778.2889.2.camel%40phoenix%3E
Signed-off-by: Thomas Gleixner <
[email protected]
>
drivers/rtc/rtc-omap.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-omap.c
b/drivers/rtc/rtc-omap.c
index de0dd7b1f146e0e7fff07bd30487b1da9add0ca1..bcae8dd41496ab089d43e6639fedfd4272dca035 100644
(file)
--- 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;
fail2:
- free_irq(omap_rtc_timer,
NULL
);
+ free_irq(omap_rtc_timer,
rtc
);
fail1:
rtc_device_unregister(rtc);
fail0: