]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-ds1343.c: fix potential race condition
authorRaghavendra Ganiga <ravi23ganiga@gmail.com>
Thu, 22 May 2014 00:43:52 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:52 +0000 (10:43 +1000)
commitfcc128e8e5966b12d00c07788561df1aed35b224
tree901f2cc4fb0c59ff7ecd97bb2e587cf37190286f
parentac61f297b1b243b5cdda2ee9d1e1f9c8244d6925
drivers/rtc/rtc-ds1343.c: fix potential race condition

Avoid the potential race condition by avoiding bailing out of driver in
probe after registering with rtc subsystem

Also the set_alarm , read_alarm and alarm_irq_enable returns error if irq
registration fails in probe.

Also the sysfs will not create entry for alarm if irq registration fails
in probe.

Signed-off-by: Raghavendra Chandra Ganiga <ravi23ganiga@gmail.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-ds1343.c