]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Eliminate deadlock potential in dahdi_fixup().
authorJeff Peeler <jpeeler@digium.com>
Fri, 18 Jun 2010 18:33:17 +0000 (18:33 +0000)
committerJeff Peeler <jpeeler@digium.com>
Fri, 18 Jun 2010 18:33:17 +0000 (18:33 +0000)
commit5cf7c69afb6114574d8ed8fc69b652f83f79ddf8
tree1541736fe3b168980c5a84025f7b1c1c5bd83c48
parente3ee8deffd96c28ba5746d0d51aa237b6b07ec9c
Eliminate deadlock potential in dahdi_fixup().

(This is a backport of 269307, committed to trunk by rmudgett.)

Calling dahdi_indicate() when the channel private lock is already
held can cause a deadlock if the PRI lock is needed because
dahdi_indicate() will also get the channel private lock.  The pri_grab()
function assumes that the channel private lock is held once to avoid
deadlock.

(closes issue #17261)
Reported by: aragon

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c