Skip to content

Commit 0692384

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 32675cc commit 0692384

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
@@ -524,7 +524,7 @@ finish_wait(wait_queue_head_t *q, wait_queue_t *wait)
524524
{
525525
int flags;
526526
MPASS(current != NULL);
527-
MPASS(current->sleep_wq == q);
527+
MPASS(current->sleep_wq == q || current->sleep_wq == NULL);
528528

529529
current->sleep_wq = NULL;
530530
__set_current_state(TASK_RUNNING);

0 commit comments

Comments
 (0)