* [PATCH] alsa-kernel/core/pcm_native.c
@ 2003-10-10 14:06 Ralf Zink
0 siblings, 0 replies; only message in thread
From: Ralf Zink @ 2003-10-10 14:06 UTC (permalink / raw)
To: alsa-devel
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
diff -u -r1.82 pcm_native.c
--- pcm_native.c 30 Sep 2003 09:28:26 -0000 1.82
+++ pcm_native.c 10 Oct 2003 10:34:44 -0000
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-10 14:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-10 14:06 [PATCH] alsa-kernel/core/pcm_native.c Ralf Zink
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.