Unverified Commit 19df753e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9376 ALSA: core: Fix NULL module pointer assignment at card init

parents f74ae23e 7ddf2f32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -312,8 +312,8 @@ static int snd_card_init(struct snd_card *card, struct device *parent,
	card->number = idx;
#ifdef MODULE
	WARN_ON(!module);
	card->module = module;
#endif
	card->module = module;
	INIT_LIST_HEAD(&card->devices);
	init_rwsem(&card->controls_rwsem);
	rwlock_init(&card->ctl_files_rwlock);