]> git.baikalelectronics.ru Git - kernel.git/commit
driver/rtc/class.c: check the error after rtc_read_time()
authorHyogi Gim <hyogi.gim@lge.com>
Fri, 8 Aug 2014 21:20:24 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:20 +0000 (15:57 -0700)
commit7ac7ea9833696cfef2b19ef653a25057d9b8ef2a
tree505e4dbbc5f60276f7e3059af72723c00ad95c4d
parent1afed01edc87e61e82dc34e1d8fa045f01cd2745
driver/rtc/class.c: check the error after rtc_read_time()

In rtc_suspend() and rtc_resume(), 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>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/class.c