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

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

parents 8880924f 4137e5d7
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);