aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/netdevice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index f3feca26b..754799cd1 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -392,7 +392,7 @@ void netdev_tx_err ( struct net_device *netdev,
}
/* Unmap I/O buffer, if required */
- if ( dma_mapped ( &iobuf->map ) )
+ if ( iobuf && dma_mapped ( &iobuf->map ) )
iob_unmap ( iobuf );
/* Discard packet */