Skip to contentSkip to conversation

alsa-kernel/core/pcm_native.c

PATCH New Ralf Zink 1 participant 1 message Oct 10, 2003

lore
Share & tools
lore

Ralf Zink

author
#0 lore raw

PATCH 1/1 alsa-kernel/core/pcm_native.c

Hi!

When trying to open an already opened /dev/snd/pcmCxDx? up(&pcm->open_mutex) is not called, so the next open calls hang forever.
I don´t know, if there is a better place for the up call, but this works.

Index: pcm_native.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm_native.c,v retrieving revision 1.82

pcm_native.c 10 Oct 2003 10:34:44 -0000 renamed from pcm_native.c 30 Sep 2003 09:28:26 -0000 1.82 +1 -1
diff -u -r1.82 pcm_native.c
@@ -1982,9 +1982,9 @@
                }
        }
        remove_wait_queue(&pcm->open_wait, &wait);
+       up(&pcm->open_mutex);
        if (err < 0)
                goto __error;
-       up(&pcm->open_mutex);
        return err;
 
       __error:

mfg Ralf Zink

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php