summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpp_dahdi.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-01-31 20:16:33 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-01-31 20:16:33 +0000
commitb27bbefb76103232b9e0bf0e3c141740dd84cf44 (patch)
tree36ed4a2277c41a7f5f4ae93d39cb64f8e7cfa558 /drivers/dahdi/xpp/xpp_dahdi.c
parent509f5cc4cf4c5d1f373e85b4e0bf878afeaac174 (diff)
xpp: Missing lock release in xpp_dahdi_unregister
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9727 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xpp_dahdi.c')
-rw-r--r--drivers/dahdi/xpp/xpp_dahdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c
index cc4edef..5a27f45 100644
--- a/drivers/dahdi/xpp/xpp_dahdi.c
+++ b/drivers/dahdi/xpp/xpp_dahdi.c
@@ -1065,6 +1065,7 @@ int dahdi_unregister_xpd(xpd_t *xpd)
if (!IS_PHONEDEV(xpd)) {
XPD_ERR(xpd, "Not a telephony device\n");
+ spin_unlock_irqrestore(&xpd->lock, flags);
return -EBADF;
}
if(!SPAN_REGISTERED(xpd)) {