diff options
Diffstat (limited to 'src/drivers/net/pnic.c')
-rw-r--r-- | src/drivers/net/pnic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/net/pnic.c b/src/drivers/net/pnic.c index f614a073..38b4af6d 100644 --- a/src/drivers/net/pnic.c +++ b/src/drivers/net/pnic.c @@ -128,13 +128,14 @@ static void pnic_poll ( struct net_device *netdev, unsigned int rx_quota ) { break; iobuf = alloc_iob ( ETH_FRAME_LEN ); if ( ! iobuf ) { - printf ( "could not allocate buffer\n" ); + DBG ( "could not allocate buffer\n" ); + netdev_rx_err ( netdev, NULL, -ENOMEM ); break; } if ( pnic_command ( pnic, PNIC_CMD_RECV, NULL, 0, iobuf->data, ETH_FRAME_LEN, &length ) != PNIC_STATUS_OK ) { - free_iob ( iobuf ); + netdev_rx_err ( netdev, iobuf, -EIO ); break; } iob_put ( iobuf, length ); |