summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-12-15 20:30:26 +0000
committerShaun Ruffell <sruffell@digium.com>2008-12-15 20:30:26 +0000
commit19e6a49f77d1a8beeb83bfe352605ed536be42b5 (patch)
tree0bb2124dfa98081af102f25dd674e007d294c2a8 /drivers/dahdi/wcte12xp
parent28b94bf39cca5edbee6c94916896fb8fe048938b (diff)
wcte12xp: do not release a spinlock that we did not acquire.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5534 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp')
-rw-r--r--drivers/dahdi/wcte12xp/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index 49d3708..a84f8c2 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -225,8 +225,8 @@ static inline int t1_setreg_full(struct t1 *wc, int addr, int val, int inisr, in
}
if (inisr)
break;
-
- spin_unlock_irqrestore(&wc->reglock, flags);
+ else
+ spin_unlock_irqrestore(&wc->reglock, flags);
if (hit < 0) {
if ((ret = schluffen(&wc->regq)))
return ret;