net/netdev: clear device buffer handle by default

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-01-05 13:19:10 +08:00 committed by Xiang Xiao
parent ffd81e63be
commit 35c1e53b1a

View file

@ -150,6 +150,7 @@ void netdev_iob_release(FAR struct net_driver_s *dev)
{
iob_free_chain(dev->d_iob);
dev->d_iob = NULL;
dev->d_buf = NULL;
}
dev->d_buf = NULL;
}