From: Takashi Iwai <tiwai@suse.de>
Date: Wed, 7 Jun 2006 16:12:31 +0000 (+0200)
Subject: [ALSA] Remove bogus check of mmap_count in snd_pcm_release()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3758d4e601552a3d9066913a31ccb8dc6a25ee69;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git

[ALSA] Remove bogus check of mmap_count in snd_pcm_release()

Removed a bogus check of mmap_count in snd_pcm_release().
This is no longer true for the shared streams.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---

diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 9e495244eee..439f047929e 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -2205,7 +2205,6 @@ static int snd_pcm_release(struct inode *inode, struct file *file)
 	pcm_file = file->private_data;
 	substream = pcm_file->substream;
 	snd_assert(substream != NULL, return -ENXIO);
-	snd_assert(!atomic_read(&substream->mmap_count), );
 	pcm = substream->pcm;
 	fasync_helper(-1, file, 0, &substream->runtime->fasync);
 	mutex_lock(&pcm->open_mutex);