From 7fb94889a83c12cbba3a5458d39d8e39ad50fd7a Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 14 Nov 2021 03:02:30 +1100 Subject: [PATCH] d/wmr: Fix a small lock handling mistake In the wmr handling thread, make sure lock handling is symmetrical in all code paths. --- src/xrt/drivers/wmr/wmr_hmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xrt/drivers/wmr/wmr_hmd.c b/src/xrt/drivers/wmr/wmr_hmd.c index c9978b42f..3744ab142 100644 --- a/src/xrt/drivers/wmr/wmr_hmd.c +++ b/src/xrt/drivers/wmr/wmr_hmd.c @@ -294,7 +294,9 @@ wmr_run_thread(void *ptr) if (!hololens_sensors_read_packets(wh)) { break; } + os_thread_helper_lock(&wh->oth); } + os_thread_helper_unlock(&wh->oth); WMR_DEBUG(wh, "Exiting reading thread.");