Re: [PATCH] drivers/rtc/interface.c: check the error after __rtc_read_time()

From: John Stultz
Date: Wed Jul 30 2014 - 13:44:51 EST


On Thu, Jul 3, 2014 at 6:22 PM, Hyogi Gim <hyogi.gim@xxxxxxx> wrote:
> 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@xxxxxxx>

Thanks for sending this in. Sorry I didn't get to it earlier. I've got
it queued for testing and hopefully will make it for 3.17 (but I may
be cutting it close).

thanks
-john
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/