]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax.c, res_fax_spandsp.c: Misc deadlock fixes. 04/3704/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 23 Aug 2016 20:57:58 +0000 (15:57 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 25 Aug 2016 23:22:21 +0000 (18:22 -0500)
commit2e7ad40f4181287fbc648ef21ba0a0a0229f64dc
treea07944ba6f800ddc036c20537c4efbea6e4af37f
parent8015550116c65b94f11419f95e121d9d85b40889
res_fax.c, res_fax_spandsp.c: Misc deadlock fixes.

* Fixed locking inconsistency in fax_gateway_start() when calling the
gateway technology start_session callback.  The callback was called with
and without the channel lock held.  Calling the callback with the channel
lock held could deadlock in spandsp_fax_gateway_start() which calls
ast_channel_get_t38_state().

* Fixed deadlock potential in fax_detect_framehook() when calling
ast_channel_make_compatible().

ASTERISK-26203
Reported by: Etienne Lessard

ASTERISK-24822
Reported by: David Brillert

ASTERISK-22732
Reported by: Richard Mudgett

Change-Id: I5a7b8e9e7b198802df06dff0ea48d96bd6d7b912
res/res_fax.c
res/res_fax_spandsp.c