Merge "ALSA: timer: check if timer->card is null before use"
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 61a0cec..f62c812 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1189,7 +1189,11 @@
 
 	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: