From 40b74d1f1c221d8720484f54840d6b08e54cbb8b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 1 Feb 2019 08:52:34 -0600 Subject: [PATCH] sched/wqueue/kwork_notifier.c: Fix broken assertion introduced in recent commit. Breaks non-error path. Suggested by Jussi Kivilinna in Butbucket commit comment. --- sched/wqueue/kwork_notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/wqueue/kwork_notifier.c b/sched/wqueue/kwork_notifier.c index 5ae5badcb3..31796cd5a6 100644 --- a/sched/wqueue/kwork_notifier.c +++ b/sched/wqueue/kwork_notifier.c @@ -1,7 +1,7 @@ /**************************************************************************** * sched/wqueue/kwork_notifier.c * - * Copyright (C) 2018 Gregory Nutt. All rights reserved. + * Copyright (C) 2018-2019 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -313,7 +313,7 @@ void work_notifier_signal(enum work_evtype_e evtype, do { ret = nxsem_wait(&g_notifier_sem); - DEBUGASSERT(ret == -EINTR || ret == -ECANCELED); + DEBUGASSERT(ret >= 0 || ret == -EINTR || ret == -ECANCELED); } while (ret < 0);