Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
capmt: change the lock order (clang sanitizer)
  • Loading branch information
perexg committed Mar 8, 2016
1 parent e2f7e12 commit f6e9885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/descrambler/capmt.c
Expand Up @@ -2098,8 +2098,8 @@ capmt_service_start(caclient_t *cac, service_t *s)
tuner = lfe->lfe_adapter->la_dvb_number;
#endif

pthread_mutex_lock(&t->s_stream_mutex);
pthread_mutex_lock(&capmt->capmt_mutex);
pthread_mutex_lock(&t->s_stream_mutex);

LIST_FOREACH(ct, &capmt->capmt_services, ct_link)
/* skip, if we already have this service */
Expand Down Expand Up @@ -2199,8 +2199,8 @@ capmt_service_start(caclient_t *cac, service_t *s)
tvh_cond_signal(&capmt->capmt_cond, 0);

fin:
pthread_mutex_unlock(&capmt->capmt_mutex);
pthread_mutex_unlock(&t->s_stream_mutex);
pthread_mutex_unlock(&capmt->capmt_mutex);

if (change)
capmt_notify_server(capmt, NULL, 0);
Expand Down

0 comments on commit f6e9885

Please sign in to comment.