summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/rtc/xgene-rtc.txt
diff options
context:
space:
mode:
authorAles Novak <alnovak@suse.cz>2014-06-06 23:35:39 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-07 01:08:06 +0200
commitee1d90146815fdc8d653c558b327fff2acba041d (patch)
treeed7ce64394d3adcca0974b359b8a2166c360fb9d /Documentation/devicetree/bindings/rtc/xgene-rtc.txt
parentfs/ceph/debugfs.c: replace seq_printf by seq_puts (diff)
downloadlinux-ee1d90146815fdc8d653c558b327fff2acba041d.tar.xz
linux-ee1d90146815fdc8d653c558b327fff2acba041d.zip
drivers/rtc/interface.c: fix infinite loop in initializing the alarm
In __rtc_read_alarm(), if the alarm time retrieved by rtc_read_alarm_internal() from the device contains invalid values (e.g. month=2,mday=31) and the year not set (=-1), the initialization will loop infinitely because the year-fixing loop expects the time being invalid due to leap year. Fix reduces the loop to the leap years and adds final validity check. Signed-off-by: Ales Novak <alnovak@suse.cz> Acked-by: Alessandro Zummo <a.zummo@towertech.it> Reported-by: Jiri Bohac <jbohac@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/rtc/xgene-rtc.txt')
0 files changed, 0 insertions, 0 deletions