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

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

parents 7c896e9c 9b1a62bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,8 +206,8 @@ int snd_card_new(struct device *parent, int idx, const char *xid,
	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);