diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-09 00:23:21 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-09 00:23:21 +0200 |
commit | 1d657d440f090ca1e4514f5c88a50be21815eb41 (patch) | |
tree | 5e88ceb05c391d56feeb6aeca4b55f015de18b52 | |
parent | a3f67f9506f917cdb8e56d1860a63fbbcf25fcfa (diff) |
kern/work: fix manager wakeup
Commit 1b902346ce502870329bda19d92d317a21cab56e introduced a minor
regression by also removing a check on the manager of a work pool,
which is a pointer to a work_thread, and not directly a thread
structure.
-rw-r--r-- | kern/work.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/work.c b/kern/work.c index 6c0ed626..5c33eb77 100644 --- a/kern/work.c +++ b/kern/work.c @@ -259,7 +259,9 @@ work_pool_wakeup_manager(struct work_pool *pool) return; } - thread_wakeup(pool->manager->thread); + if (pool->manager != NULL) { + thread_wakeup(pool->manager->thread); + } } static void |