|
@@ -134,8 +134,10 @@ static void pnic_poll ( struct net_device *netdev ) {
|
134
|
134
|
if ( qlen == 0 )
|
135
|
135
|
break;
|
136
|
136
|
pkb = alloc_pkb ( ETH_FRAME_LEN );
|
137
|
|
- if ( ! pkb )
|
|
137
|
+ if ( ! pkb ) {
|
|
138
|
+ printf ( "could not allocate buffer\n" );
|
138
|
139
|
break;
|
|
140
|
+ }
|
139
|
141
|
if ( pnic_command ( pnic, PNIC_CMD_RECV, NULL, 0,
|
140
|
142
|
pkb->data, ETH_FRAME_LEN, &length )
|
141
|
143
|
!= PNIC_STATUS_OK ) {
|
|
@@ -153,7 +155,7 @@ TRANSMIT - Transmit a frame
|
153
|
155
|
static int pnic_transmit ( struct net_device *netdev, struct pk_buff *pkb ) {
|
154
|
156
|
struct pnic *pnic = netdev->priv;
|
155
|
157
|
|
156
|
|
- pnic_command ( pnic, PNIC_CMD_XMIT, pkb, pkb_len ( pkb ),
|
|
158
|
+ pnic_command ( pnic, PNIC_CMD_XMIT, pkb->data, pkb_len ( pkb ),
|
157
|
159
|
NULL, 0, NULL );
|
158
|
160
|
free_pkb ( pkb );
|
159
|
161
|
return 0;
|