From f38973bc196b3e6eaf1f26c7e4984f4a5379f149 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 26 Apr 2010 23:29:16 +0000 Subject: 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 --- drivers/dahdi/voicebus/GpakCust.c | 10 +++++----- 1 file 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; } -- cgit v1.2.3