Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283099
b: refs/heads/master
c: e74a8f2
h: refs/heads/master
i:
  283097: 4e73413
  283095: 1e192b8
v: v3
  • Loading branch information
Ben Hutchings authored and Linus Torvalds committed Jan 11, 2012
1 parent bb47ceb commit e65823e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 948170f8944dfd29d13612fff48110a9814daeb1
refs/heads/master: e74a8f2edb92cb690b467cea0ab652c509e9f624
4 changes: 2 additions & 2 deletions trunk/drivers/rtc/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ int __rtc_read_alarm(struct rtc_device *rtc, struct rtc_wkalrm *alarm)
alarm->time.tm_hour = now.tm_hour;

/* For simplicity, only support date rollover for now */
if (alarm->time.tm_mday == -1) {
if (alarm->time.tm_mday < 1 || alarm->time.tm_mday > 31) {
alarm->time.tm_mday = now.tm_mday;
missing = day;
}
if (alarm->time.tm_mon == -1) {
if ((unsigned)alarm->time.tm_mon >= 12) {
alarm->time.tm_mon = now.tm_mon;
if (missing == none)
missing = month;
Expand Down

0 comments on commit e65823e

Please sign in to comment.