TT#14008 flag Coverity lock-order false positive

The order is indeed reversed, which is why "trylock" is used so the
process doesn't deadlock.

Change-Id: I9142ad3851d1b3917820c88fe2ea316be63745ad
pull/1295/head
Richard Fuchs 4 years ago
parent ab836ae042
commit a057fffe50

@ -2924,6 +2924,7 @@ restart:
first_call = NULL; first_call = NULL;
if (rtpe_call_iterators[i].first) { if (rtpe_call_iterators[i].first) {
first_call = rtpe_call_iterators[i].first->data; first_call = rtpe_call_iterators[i].first->data;
// coverity[lock_order : FALSE]
if (mutex_trylock(&first_call->iterator[i].lock)) { if (mutex_trylock(&first_call->iterator[i].lock)) {
mutex_unlock(&rtpe_call_iterators[i].lock); mutex_unlock(&rtpe_call_iterators[i].lock);
continue; // retry continue; // retry

Loading…
Cancel
Save