18145 parent b45d59fb92f60c9c3cda01355d42b907b863e47a author Thomas Gleixner 1311721698 -0700 committer Linus Torvalds 1311724181 -0700 rtc: handle errors correctly in rtc_irq_set_state() 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 Cc: John Stultz Cc: Ingo Molnar Cc: Ben Greear Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ã~