net/netdev: clear device buffer handle by default
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
ffd81e63be
commit
35c1e53b1a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue