From: Jaroslav Kysela Date: Fri, 25 Mar 2016 19:30:31 +0000 (+0100) Subject: SAT>IP client: fix possible inverted locking (clang sanitizer) X-Git-Tag: v4.2.1~812 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27b866f7f291ad0e27669d5049f669953dd50c69;p=thirdparty%2Ftvheadend.git SAT>IP client: fix possible inverted locking (clang sanitizer) --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 68a2dc8ea..dab617c94 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1035,10 +1035,12 @@ satip_frontend_wake_other_waiting( satip_frontend_t *lfe ) lfe = TAILQ_FIRST(&sd->sd_serialize_queue); if (lfe != NULL) { tvhtrace("satip", "wake other waiting: %s", lfe->mi_name); + pthread_mutex_unlock(&sd->sd_tune_mutex); pthread_mutex_lock(&lfe->sf_dvr_lock); if (lfe->sf_running) tvh_write(lfe->sf_dvr_pipe.wr, "o", 1); pthread_mutex_unlock(&lfe->sf_dvr_lock); + return; } } pthread_mutex_unlock(&sd->sd_tune_mutex);