From 31b1a599b8167234e9b7aa57f4dbe8f4037c0ffe Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 29 May 2024 11:52:54 +0200 Subject: [PATCH] aio: add forgotten mutex_destroy --- kernel/mars_aio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/mars_aio.c b/kernel/mars_aio.c index d8013d8f..6f3c13aa 100644 --- a/kernel/mars_aio.c +++ b/kernel/mars_aio.c @@ -534,6 +534,7 @@ void aio_stop_thread(struct aio_output *output, int i, bool do_submit_dummy) (60 - i * 2) * HZ); if (likely(tinfo->terminated)) { brick_thread_stop(tinfo->thread); + mutex_destroy(&tinfo->mutex); } else { MARS_ERR("thread %d did not terminate - leaving a zombie\n", i); }