|
@@ -808,7 +808,8 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
|
|
|
/* Convert (if necessary) to absolute time */
|
|
|
if (flags != TIMER_ABSTIME) {
|
|
|
ktime_t now = alarm_bases[type].gettime();
|
|
|
- exp = ktime_add(now, exp);
|
|
|
+
|
|
|
+ exp = ktime_add_safe(now, exp);
|
|
|
}
|
|
|
|
|
|
ret = alarmtimer_do_nsleep(&alarm, exp, type);
|