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

Commit 5b9cb990 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ALSA: timer: check if timer->card is null before use"

parents ded0db28 ec175414
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1189,7 +1189,11 @@ static void snd_timer_proc_read(struct snd_info_entry *entry,

	mutex_lock(&register_mutex);
	list_for_each_entry(timer, &snd_timer_list, device_list) {
		if (timer->card && timer->card->shutdown)
		if (timer->card == NULL) {
			pr_debug("%s: timer->card is NULL\n", __func__);
			continue;
		}
		if (timer->card->shutdown)
			continue;
		switch (timer->tmr_class) {
		case SNDRV_TIMER_CLASS_GLOBAL: