From 473dfe989b2b02cf79477c4ac1e0d6f592dd2b3d Mon Sep 17 00:00:00 2001
From: Knud Baastrup <kba@deif.com>
Date: Thu, 8 Dec 2016 08:39:49 +0100
Subject: [PATCH 1/6] Fix to "If --enable-rtmutex, use rtmutexes instead of
 semaphores" patch

Fix a double lock protection of ext_datagram_queue introduced during patch
refactoring. The double lock protection can result in kernel panic if
EoE mailbox protocol is used.
---
 master/master.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/master/master.c b/master/master.c
index 3f03195..413a31c 100644
--- a/master/master.c
+++ b/master/master.c
@@ -1939,9 +1939,7 @@ static int ec_master_eoe_thread(void *priv_data)
                 ec_eoe_queue(eoe);
             }
             // (try to) send datagrams
-            ec_lock_down(&master->ext_queue_sem);
             master->send_cb(master->cb_data);
-            ec_lock_up(&master->ext_queue_sem);
         }
 
 schedule:
-- 
2.8.1.windows.1

