[Asterisk-code-review] pjproject bundled: Add 3 upstream patches (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Tue Apr 4 17:17:07 CDT 2017


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/5406 )

Change subject: pjproject_bundled: Add 3 upstream patches
......................................................................


Patch Set 1: Code-Review-1

(2 comments)

https://gerrit.asterisk.org/#/c/5406/1/res/res_pjsip/pjsip_distributor.c
File res/res_pjsip/pjsip_distributor.c:

PS1, Line 136: #ifdef HAVE_PJ_TRANSACTION_GRP_LOCK
             : 	pj_grp_lock_release(tsx->grp_lock);
             : #else
             : 	pj_mutex_unlock(tsx->mutex);
             : #endif
To use the new tsx2 you need to dec_ref instead of unlocking.

The other thing.  Are we actually susceptable to the deadlock?  I think we cannot dereference the tsx->last_tx without holding the lock anyway.


PS1, Line 270: #ifdef HAVE_PJ_TRANSACTION_GRP_LOCK
             : 	pj_grp_lock_release(tsx->grp_lock);
             : #else
             : 	pj_mutex_unlock(tsx->mutex);
             : #endif
To use the new tsx2 you need to dec_ref instead of unlocking.


-- 
To view, visit https://gerrit.asterisk.org/5406
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I268fb3cf71a3bb24283ff0d24bd8b03239d81256
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list