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

Commit 5b5cd553 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: info - Remove BKL



Use the fine-grained mutex for the assigned info object, instead.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d05468b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)

	data = file->private_data;
	entry = data->entry;
	lock_kernel();
	mutex_lock(&entry->access);
	switch (entry->content) {
	case SNDRV_INFO_CONTENT_TEXT:
		switch (orig) {
@@ -196,7 +196,7 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
	}
	ret = -ENXIO;
out:
	unlock_kernel();
	mutex_unlock(&entry->access);
	return ret;
}