summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-09 00:23:21 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-09 00:23:21 +0200
commit1d657d440f090ca1e4514f5c88a50be21815eb41 (patch)
tree5e88ceb05c391d56feeb6aeca4b55f015de18b52 /kern
parenta3f67f9506f917cdb8e56d1860a63fbbcf25fcfa (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.
Diffstat (limited to 'kern')
-rw-r--r--kern/work.c4
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