Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d490b65 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "kernel: time: Fix the alarm_bases array accessing issue"

parents 1290e2f3 471992d3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -509,6 +509,10 @@ void alarm_init(struct alarm *alarm, enum alarmtimer_type type,
	alarm->timer.function = alarmtimer_fired;
	alarm->function = function;
	alarm->type = type;
	if (type >= ALARM_NUMTYPE) {
		/* use ALARM_BOOTTIME as the default */
		alarm->type = ALARM_BOOTTIME;
	}
	alarm->state = ALARMTIMER_STATE_INACTIVE;
}
EXPORT_SYMBOL_GPL(alarm_init);