This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 00dfb5d1f3391ce301a8039db91e99df3335fa42 Author: gaohedong <[email protected]> AuthorDate: Mon Jan 13 22:39:17 2025 +0800 ethernet: Release iob when dropping ethernet packets Release iob when dropping ethernet packets Signed-off-by: gaohedong <[email protected]> --- drivers/net/netdev_upperhalf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/netdev_upperhalf.c b/drivers/net/netdev_upperhalf.c index 7e006f0fda9..3c9e0438f8e 100644 --- a/drivers/net/netdev_upperhalf.c +++ b/drivers/net/netdev_upperhalf.c @@ -597,6 +597,7 @@ static void eth_input(FAR struct net_driver_s *dev) ninfo("INFO: Dropped, Unknown type: %04x\n", eth_hdr->type); NETDEV_RXDROPPED(dev); dev->d_len = 0; + netdev_iob_release(dev); } /* If the above function invocation resulted in data
