summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-m48t86.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-26 16:08:18 -0700
committerJonas ABERG <jonas.aberg@stericsson.com>2011-10-28 11:05:14 +0200
commitd49cbd476f67ee54a8fec45a6d0ad866c8fc0e9a (patch)
treece5f2803340d2f4e82aef56710f34c9a3929d2b8 /drivers/rtc/rtc-m48t86.c
parente518609335745126aef1a771af541eda7434c387 (diff)
rtc: handle errors correctly in rtc_irq_set_state()
commit 2c4f57d12df7696d65b0247bfd57fd082a7719e6 upstream. The code checks the correctness of the parameters, but unconditionally arms/disarms the hrtimer. The result is that a random task might arm/disarm rtc timer and surprise the real owner by either generating events or by stopping them. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: John Stultz <john.stultz@linaro.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Ben Greear <greearb@candelatech.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: If7bc32fff7a770c0e8a374f0e47cca6a0e6fcaa3 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35593 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'drivers/rtc/rtc-m48t86.c')
0 files changed, 0 insertions, 0 deletions