diff options
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/GpakCust.c | 7 | ||||
-rw-r--r-- | drivers/dahdi/wcte12xp/vpmadt032.c | 4 |
2 files changed, 8 insertions, 3 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; + } + } } } diff --git a/drivers/dahdi/wcte12xp/vpmadt032.c b/drivers/dahdi/wcte12xp/vpmadt032.c index 1df5415..c9df41c 100644 --- a/drivers/dahdi/wcte12xp/vpmadt032.c +++ b/drivers/dahdi/wcte12xp/vpmadt032.c @@ -1057,7 +1057,9 @@ void gpakLockAccess(unsigned short DspId) struct vpm150m *vpm = wc->vpm150m; if (vpm) - down_interruptible(&vpm->sem); + if (down_interruptible(&vpm->sem)) { + return; + } } } |