From: Thomas Gleixner Date: Fri, 22 Jul 2011 09:12:50 +0000 (+0000) Subject: rtc: Handle errors correctly in rtc_irq_set_state() X-Git-Tag: v3.1-rc3~25^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53cc2820acbdbcc768675bfaff321f3a8680a317;p=pandora-kernel.git rtc: Handle errors correctly in rtc_irq_set_state() In rtc_irq_set_state, the code checks the correctness of the parameters, but then goes on to unconditionally arms/disarms the hrtimer. Thus a random task might arm/disarm rtc timer and surprise the real owner by either generating events or by stopping them. Cc: stable@kernel.org Signed-off-by: Thomas Gleixner Signed-off-by: John Stultz --- Reading git-diff-tree failed