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

Commit b95d6673 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ALSA: info: Protect list access of new entry"

parents fd84661f faf60ba7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -754,8 +754,11 @@ snd_info_create_entry(const char *name, struct snd_info_entry *parent)
	INIT_LIST_HEAD(&entry->children);
	INIT_LIST_HEAD(&entry->list);
	entry->parent = parent;
	if (parent)
	if (parent) {
		mutex_lock(&parent->access);
		list_add_tail(&entry->list, &parent->children);
		mutex_unlock(&parent->access);
	}
	return entry;
}