diff options
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/GpakCust.c')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/GpakCust.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/dahdi/wctdm24xxp/GpakCust.c b/drivers/dahdi/wctdm24xxp/GpakCust.c index ea77e0d..a32fb96 100644 --- a/drivers/dahdi/wctdm24xxp/GpakCust.c +++ b/drivers/dahdi/wctdm24xxp/GpakCust.c @@ -407,8 +407,11 @@ void gpakLockAccess(unsigned short DspId) if (wc) { struct vpm150m *vpm = wc->vpm150m; - if (vpm) - down_interruptible(&vpm->sem); + if (vpm) { + if (down_interruptible(&vpm->sem)) { + return; + } + } } } |