]> git.baikalelectronics.ru Git - kernel.git/commit
RTC: rtc-omap: Fix a leak of the IRQ during init failure
authorAxel Lin <axel.lin@gmail.com>
Sun, 17 Apr 2011 02:02:58 +0000 (10:02 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 18 Apr 2011 08:39:38 +0000 (10:39 +0200)
commit49eacc82a4dce47ff7a577e4f144d20eda34d0ec
treeb7a531736d1885ce25f6811de63dc3f1d064e561
parentca3f4cf524b58e2fd7680e42144fd6ae4460b471
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.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: "George G. Davis" <gdavis@mvista.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: rtc-linux@googlegroups.com
Link: http://lkml.kernel.org/r/%3C1303005778.2889.2.camel%40phoenix%3E
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/rtc/rtc-omap.c