[dahdi-commits] sruffell: linux/trunk r8575 - /linux/trunk/drivers/dahdi/voicebus/GpakCust.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Apr 26 18:29:26 CDT 2010
Author: sruffell
Date: Mon Apr 26 18:29:16 2010
New Revision: 8575
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8575
Log:
wcte12xp, wctdm24xxp: Do not allow interruptible sleep on VPM lock.
If the sleep is ever interrupted, 'up' will still be called in the GpakApi,
essentially making the lock useless after that point.
Modified:
linux/trunk/drivers/dahdi/voicebus/GpakCust.c
Modified: linux/trunk/drivers/dahdi/voicebus/GpakCust.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/voicebus/GpakCust.c?view=diff&rev=8575&r1=8574&r2=8575
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/GpakCust.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/GpakCust.c Mon Apr 26 18:29:16 2010
@@ -900,11 +900,11 @@
vpm = find_iface(DspId);
- if (vpm) {
- if (down_interruptible(&vpm->sem)) {
- return;
- }
- }
+ if (!vpm)
+ return;
+
+ down(&vpm->sem);
+ return;
}
More information about the dahdi-commits
mailing list