]> git.baikalelectronics.ru Git - kernel.git/commit
RTC: Release mutex in error path of rtc_alarm_irq_enable
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 14 Feb 2011 10:33:17 +0000 (11:33 +0100)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 17 Feb 2011 22:59:22 +0000 (14:59 -0800)
commit6d947c326755625a37f8e58eb5987f79d49ee8a7
treefdc88e327f0e7143354b1ea4c190bee21aff6c1f
parent30a0363079812925abebfe77406bd9dfa2ee5e91
RTC: Release mutex in error path of rtc_alarm_irq_enable

On hardware that doesn't support alarm interrupts, rtc_alarm_irq_enable
could return without releasing the ops_lock mutex.

This was introduced in
7b58a52 (RTC: Propagate error handling via rtc_timer_enqueue properly)

This patch corrects the issue by only returning once the mutex is
released.

[john.stultz: Reworded the commit log]

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/interface.c