kernel/poll: Remove dummy waitq from stack
The poll code uses a dummy wait queue so the threads have something to block on, but the previous coherence pass (which rearranged things to put the _poller data elsewhere) missed that this was on the stack, which is not allowed. It actually has no use except as a list, so make it a global static instead. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
95bcba5946
commit
4dc6a0b89b
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ int z_impl_k_poll(struct k_poll_event *events, int num_events,
|
|||
return -EAGAIN;
|
||||
}
|
||||
|
||||
_wait_q_t wait_q = Z_WAIT_Q_INIT(&wait_q);
|
||||
static _wait_q_t wait_q = Z_WAIT_Q_INIT(&wait_q);
|
||||
|
||||
int swap_rc = z_pend_curr(&lock, key, &wait_q, timeout);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue