Skip to content
Commit ca6dc2da authored by Hyogi Gim's avatar Hyogi Gim Committed by Linus Torvalds
Browse files

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: default avatarHyogi Gim <hyogi.gim@lge.com>
Acked-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6e85bab6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment