]> git.ipfire.org Git - thirdparty/asterisk.git/commit
segfault after SPINLOCK schedule delete
authorDavid Vossel <dvossel@digium.com>
Mon, 29 Jun 2009 17:04:04 +0000 (17:04 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 29 Jun 2009 17:04:04 +0000 (17:04 +0000)
commit4f3580b88272b5a11162372bfb8493484b3f456a
tree88e7682097dc48c239e590edd9fce832129ab9fb
parenta3848ec74c6a43158995d27d2ae755003ba9f361
segfault after SPINLOCK schedule delete

Using the SPINLOCK schedule delete macro can result in the iax_pvt lock
being given up.  This makes it possible for the iax_pvt to dissappear
when we thought we held the mutex the entire time.  To resolve this, the
iax_pvt's ref count is incremented.

(closes issue #15377)
Reported by: aragon
Patches:
      iax_spin_issue_1.4.diff uploaded by dvossel (license 671)
Tested by: aragon, dvossel

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