mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
net/devif: fix poll issue when ifdown
When the interface is in a down state, it triggers a poll busy loop issue. Signed-off-by: gaohedong <gaohedong@xiaomi.com>
This commit is contained in:
@@ -282,7 +282,7 @@ devif_callback_alloc(FAR struct net_driver_s *dev,
|
||||
* to de-allocate connection callbacks reliably on NETDEV_DOWN event.
|
||||
*/
|
||||
|
||||
if (dev && !(netdev_verify(dev) && (dev->d_flags & IFF_UP) != 0))
|
||||
if (dev && !netdev_verify(dev))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user