aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-05-28 10:51:39 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-05-28 10:51:39 +0000
commit2a3ec12831a7bb30480cf4200bcb0671cba0cb00 (patch)
tree69252287a4ef547744880e742598d28626470b9f /sys/compat/linuxkpi
parent609169becc8289b86cd097fdac74e5616977be75 (diff)
Notes
Diffstat (limited to 'sys/compat/linuxkpi')
-rw-r--r--sys/compat/linuxkpi/common/src/linux_schedule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_schedule.c b/sys/compat/linuxkpi/common/src/linux_schedule.c
index 11602ddf9b11..665e2fdf6b31 100644
--- a/sys/compat/linuxkpi/common/src/linux_schedule.c
+++ b/sys/compat/linuxkpi/common/src/linux_schedule.c
@@ -47,7 +47,7 @@ linux_add_to_sleepqueue(void *wchan, struct task_struct *task,
{
int flags, ret;
- MPASS((state & ~TASK_NORMAL) == 0);
+ MPASS((state & ~(TASK_PARKED | TASK_NORMAL)) == 0);
flags = SLEEPQ_SLEEP | ((state & TASK_INTERRUPTIBLE) != 0 ?
SLEEPQ_INTERRUPTIBLE : 0);