tcp: fix an assertion in "fix iob allocation deadlock" commit
Fix a wrong assertion in:
```
commit 98ec46d726
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
Date: Tue Jul 20 09:10:43 2021 +0900
tcp_send_buffered.c: fix iob allocation deadlock
Ensure to put the wrb back onto the write_q when blocking
on iob allocation. Otherwise, it can deadlock with other
threads doing the same thing.
```
I forget to submit this with https://github.com/apache/incubator-nuttx/pull/4257
This commit is contained in:
parent
b399c509c8
commit
b5bb0d56ad
@ -1163,7 +1163,7 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf,
|
||||
{
|
||||
wrb = tcp_wrbuffer_tryalloc();
|
||||
ninfo("new wrb %p (non blocking)\n", wrb);
|
||||
DEBUGASSERT(TCP_WBPKTLEN(wrb) == 0);
|
||||
DEBUGASSERT(wrb == NULL || TCP_WBPKTLEN(wrb) == 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user