From b2cd329f4c02a80d10ef5906835917c9babcd31f Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 20 Mar 2017 23:37:50 -0700 Subject: [PATCH] FRONTPANEL: Fix repeating register data gathering lock problem (COVERITY) --- sim_frontpanel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sim_frontpanel.c b/sim_frontpanel.c index f4a84049..2f3b0e57 100644 --- a/sim_frontpanel.c +++ b/sim_frontpanel.c @@ -2003,6 +2003,7 @@ while ((p->sock != INVALID_SOCKET) && if (p->callback) { pthread_mutex_unlock (&p->io_lock); p->callback (p, p->simulation_time, p->callback_context); + pthread_mutex_lock (&p->io_lock); } } if (!strcmp (s + strlen (sim_prompt), register_get_echo)) {