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

Commit a306fccd 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 59d683f6 f045a3de
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -348,6 +348,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);