From: Thomas Gleixner Date: Tue, 26 Jul 2011 23:08:18 +0000 (-0700) Subject: rtc: handle errors correctly in rtc_irq_set_state() X-Git-Tag: v3.1-rc1~215 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c4f57d12df7696d65b0247bfd57fd082a7719e6;p=pandora-kernel.git 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 --- Reading git-diff-tree failed