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

Commit 315cfa01 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 a134670c 60724d5c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -735,8 +735,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;
}