From: Hyogi Gim Date: Fri, 8 Aug 2014 21:20:24 +0000 (-0700) Subject: driver/rtc/class.c: check the error after rtc_read_time() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~116^2~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1d60093ca7341e884578c41a29da7cd1714c80e;p=pandora-kernel.git 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 Cc: Alessandro Zummo Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed