[asterisk-commits] jpeeler: branch 1.4 r222462 - /branches/1.4/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 6 18:51:24 CDT 2009


Author: jpeeler
Date: Tue Oct  6 18:51:19 2009
New Revision: 222462

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=222462
Log:
Add missing unlock(s) in dahdi_read

(two cases in trunk)

(closes issue #15683)
Reported by: alecdavis


Modified:
    branches/1.4/channels/chan_dahdi.c

Modified: branches/1.4/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_dahdi.c?view=diff&rev=222462&r1=222461&r2=222462
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Tue Oct  6 18:51:19 2009
@@ -5081,7 +5081,10 @@
 		return NULL;
 	}
 	
-	if ((p->radio || (p->oprmode < 0)) && p->inalarm) return NULL;
+	if ((p->radio || (p->oprmode < 0)) && p->inalarm) {
+		ast_mutex_unlock(&p->lock);
+		return NULL;
+	}
 
 	p->subs[index].f.frametype = AST_FRAME_NULL;
 	p->subs[index].f.datalen = 0;




More information about the asterisk-commits mailing list