This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] zephyr: Fix infinite loop in select
fixup! [nrf noup] zephyr: Add support for WPA CLI zephyr In case of low-memory conditions e.g., in stress tests, the allocation failure causes the callback to skip recv, there by leaving data on the socket and causing select to trigger the callback in an infinite loop. This infinite loop causes threads starvation as WPA supplicant thread runs at a higher priority, and is manifested as shell freeze. Fix this by discarding the data on socket in case of memory allocation failure. Fixes SHEL-1967. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
- Loading branch information