]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fixes deadlocks occuring in chan_agent due to r335976
authorJonathan Rose <jrose@digium.com>
Fri, 3 Feb 2012 21:24:45 +0000 (21:24 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 3 Feb 2012 21:24:45 +0000 (21:24 +0000)
commit65360e2ae5b6a9853b049da8d57fc0e284a78f0c
tree054fd39cedf0e79ea6f20dd208f6fba1d40c8031
parentea4fa3227f65b94599f69b9a60a85291569ffaee
Fixes deadlocks occuring in chan_agent due to r335976

Bad locking order was added to chan_agent to prevent segfaults from having no locking
in a patch by irroot. This patch addresses the bad locking order by releasing locks before
getting the right locking order to stop deadlocks from occuring when doing multiple
interactions with agents.

(closes issue ASTERISK-19285)
Reported by: Alex Villacis Lasso
Review: https://reviewboard.asterisk.org/r/1708/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@353999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_agent.c