summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-04-26 23:29:16 +0000
committerShaun Ruffell <sruffell@digium.com>2010-04-26 23:29:16 +0000
commitf38973bc196b3e6eaf1f26c7e4984f4a5379f149 (patch)
tree74b72ddff56d86a697b9aac74744c11c28d3e35b /drivers/dahdi/voicebus
parent6490ec49019832bcd3e9b9ecf8fbebe1f703536e (diff)
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. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8575 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus')
-rw-r--r--drivers/dahdi/voicebus/GpakCust.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c
index 74c3304..67ece40 100644
--- a/drivers/dahdi/voicebus/GpakCust.c
+++ b/drivers/dahdi/voicebus/GpakCust.c
@@ -900,11 +900,11 @@ void gpakLockAccess(unsigned short DspId)
vpm = find_iface(DspId);
- if (vpm) {
- if (down_interruptible(&vpm->sem)) {
- return;
- }
- }
+ if (!vpm)
+ return;
+
+ down(&vpm->sem);
+ return;
}