]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/interface.c: check the error after __rtc_read_time()
authorHyogi Gim <hyogi.gim@lge.com>
Fri, 8 Aug 2014 21:20:11 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:19 +0000 (15:57 -0700)
commit6f56413326bfe8efd0f7913b508db4fafda9513d
tree82bcedccb2fa224f4d00b9155325699f678f16a8
parent267fec6d3612f4ab82b800b13c2abcd5e1007c67
drivers/rtc/interface.c: check the error after __rtc_read_time()

In __rtc_set_alarm(), the error after __rtc_read_time() is not checked.
If rtc device fail to read time, we cannot guarantee the following
process.

Add the verification code for returned __rtc_read_time() error.

Signed-off-by: Hyogi Gim <hyogi.gim@lge.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/interface.c