Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36496
b: refs/heads/master
c: 46798c8
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Jeff Garzik committed Sep 26, 2006
1 parent 7e9f808 commit 8678131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84c22d7901f793bd267b5f79270080964b252826
refs/heads/master: 46798c897e235e71e1e9c46a5e6e9adfffd8b85d
8 changes: 7 additions & 1 deletion trunk/drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -3789,6 +3789,12 @@ static int nv_loopback_test(struct net_device *dev)
/* setup packet for tx */
pkt_len = ETH_DATA_LEN;
tx_skb = dev_alloc_skb(pkt_len);
if (!tx_skb) {
printk(KERN_ERR "dev_alloc_skb() failed during loopback test"
" of %s\n", dev->name);
ret = 0;
goto out;
}
pkt_data = skb_put(tx_skb, pkt_len);
for (i = 0; i < pkt_len; i++)
pkt_data[i] = (u8)(i & 0xff);
Expand Down Expand Up @@ -3853,7 +3859,7 @@ static int nv_loopback_test(struct net_device *dev)
tx_skb->end-tx_skb->data,
PCI_DMA_TODEVICE);
dev_kfree_skb_any(tx_skb);

out:
/* stop engines */
nv_stop_rx(dev);
nv_stop_tx(dev);
Expand Down

0 comments on commit 8678131

Please sign in to comment.