acassis commented on code in PR #11009: URL: https://github.com/apache/nuttx/pull/11009#discussion_r1370165228
########## drivers/net/tun.c: ########## @@ -775,14 +775,19 @@ static void tun_txavail_work(FAR void *arg) static int tun_txavail(FAR struct net_driver_s *dev) { FAR struct tun_device_s *priv = (FAR struct tun_device_s *)dev->d_private; + irqstate_t flags; + + flags = enter_critical_section(); /* No interrupts */ /* Schedule to perform the TX poll on the worker thread. */ - if (work_available(&priv->work)) + if (priv->bifup && work_available(&priv->work)) Review Comment: Please update the above comment, now it only updates if bifup is true -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org