[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r321550 - /team/irroot/distrot...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 2 03:44:22 CDT 2011


Author: irroot
Date: Thu Jun  2 03:44:16 2011
New Revision: 321550

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321550
Log:
Prevent a possible deadlock using correct locking order

Modified:
    team/irroot/distrotech-customers-1.8/main/pbx.c

Modified: team/irroot/distrotech-customers-1.8/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/main/pbx.c?view=diff&rev=321550&r1=321549&r2=321550
==============================================================================
--- team/irroot/distrotech-customers-1.8/main/pbx.c (original)
+++ team/irroot/distrotech-customers-1.8/main/pbx.c Thu Jun  2 03:44:16 2011
@@ -4442,7 +4442,9 @@
 	} else { /* callback with extension, find the callback based on ID */
 		struct ast_hint *hint;
 
+		ao2_lock(hints);
 		hint = ao2_callback(hints, 0, find_hint_by_cb_id, &id);
+		ao2_unlock(hints);
 
 		if (hint) {
 			ao2_lock(hint);




More information about the asterisk-commits mailing list