diff options
author | Hyogi Gim <hyogi.gim@lge.com> | 2014-08-08 23:20:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-09 00:57:20 +0200 |
commit | e1d60093ca7341e884578c41a29da7cd1714c80e (patch) | |
tree | 505e4dbbc5f60276f7e3059af72723c00ad95c4d /drivers/rtc/rtc-pcf50633.c | |
parent | rtc: add pcf85063 support (diff) | |
download | linux-e1d60093ca7341e884578c41a29da7cd1714c80e.tar.xz linux-e1d60093ca7341e884578c41a29da7cd1714c80e.zip |
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>
Diffstat (limited to 'drivers/rtc/rtc-pcf50633.c')
0 files changed, 0 insertions, 0 deletions