Skip to content

Commit 3bcceb6

Browse files
sleep_wq can be NULL on finish_wait
If we have pending signals, when entering prepare_to_wait_event, we will not set currebt->sleep_wq, so it will stay NULL
1 parent 65db404 commit 3bcceb6

File tree

1 file changed

+1
-1
lines changed
  • sys/compat/linuxkpi/common/include/linux

1 file changed

+1
-1
lines changed

sys/compat/linuxkpi/common/include/linux/wait.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ finish_wait(wait_queue_head_t *q, wait_queue_t *wait)
550550
{
551551
int flags;
552552
MPASS(current != NULL);
553-
MPASS(current->sleep_wq == q);
553+
MPASS(current->sleep_wq == q || current->sleep_wq == NULL);
554554

555555
current->sleep_wq = NULL;
556556
__set_current_state(TASK_RUNNING);

0 commit comments

Comments
 (0)