From ffd81e63bef8e5abe85d55cf5345a67b8789fc1c Mon Sep 17 00:00:00 2001 From: chao an Date: Fri, 6 Jan 2023 13:33:29 +0800 Subject: [PATCH] net/tcp: reprepare response buffer from unthrottle pool Signed-off-by: chao an --- net/tcp/tcp_callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/tcp/tcp_callback.c b/net/tcp/tcp_callback.c index 4fb7f407bf..a5f22c4556 100644 --- a/net/tcp/tcp_callback.c +++ b/net/tcp/tcp_callback.c @@ -118,7 +118,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *dev, /* Prepare device buffer */ - if (dev->d_iob == NULL && netdev_iob_prepare(dev, true, 0) != OK) + if (dev->d_iob == NULL && netdev_iob_prepare(dev, false, 0) != OK) { return 0; } @@ -190,7 +190,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *dev, if (dev->d_iob == NULL) { - netdev_iob_prepare(dev, true, 0); + netdev_iob_prepare(dev, false, 0); } return flags;