diff options
author | Wan ZongShun <mcuos.com@gmail.com> | 2010-08-11 03:02:07 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 17:59:06 +0200 |
commit | 70d2a0bae26c7c44641785d9def8a0d9048abbea (patch) | |
tree | 01c89101b519340ff6252eb2de5024d016c20789 /crypto/aead.c | |
parent | nuc900/rtc: change the waiting for device ready implement (diff) | |
download | linux-70d2a0bae26c7c44641785d9def8a0d9048abbea.tar.xz linux-70d2a0bae26c7c44641785d9def8a0d9048abbea.zip |
rtc/nuc900: fix checking of args during time-setting
When a user application wants to set the rtc time, the RTC subsystem takes
advantage of 'rtc_valid_tm(tm)' to check 'rtc_time *tm' value validity, it
make sure the 'tm->tm_year' is larger than 70,so if '70< tm_year < 100',
the '(settm->tm_year - 100)' will be negative. ' Setting the negative
value to hardware register will be invalid, so I add the 'if' condition to
make sure set a valid value to register.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/aead.c')
0 files changed, 0 insertions, 0 deletions