summaryrefslogtreecommitdiffstats
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r--src/net/netdevice.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index a9ed18134..0af916ff5 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -22,6 +22,7 @@
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+FILE_SECBOOT ( PERMITTED );
#include <stdint.h>
#include <stdlib.h>
@@ -611,8 +612,8 @@ void netdev_rx_err ( struct net_device *netdev,
*/
void netdev_poll ( struct net_device *netdev ) {
- /* Avoid calling poll() on unopened network devices */
- if ( ! netdev_is_open ( netdev ) )
+ /* Call poll() only on open (or insomniac) network devices */
+ if ( ! ( netdev->state & ( NETDEV_OPEN | NETDEV_INSOMNIAC ) ) )
return;
/* Guard against re-entry */