Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: Fix task block when devif_send fails. #9423

Merged
merged 1 commit into from Jun 1, 2023

Commits on May 31, 2023

  1. net: Fix task block when devif_send fails.

    When a task needs to send data, a callback is allocated and the
    transmission is happening in a worker task through devif_send.
    Synchronization between the two tasks (sender & worker) is
    achieved by a semaphore.
    
    If devif_send fails, this semaphore was never posted, leaving
    the sending task blocked indefinitely. This commit fixes this
    by checking the return code of netif_send, and posting this
    semaphore in case of failure.
    
    Polling then stops, and execution is resumed on the sending
    task.
    fjpanag committed May 31, 2023
    Configuration menu
    Copy the full SHA
    fc97ce7 View commit details
    Browse the repository at this point in the history