Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35200
b: refs/heads/master
c: 3fbbc72
h: refs/heads/master
v: v3
  • Loading branch information
Vasily Averin authored and Auke Kok committed Aug 28, 2006
1 parent 7fb7c65 commit 91f735c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: 6dd62ab063ec12bf1343d244d89e09d5c3b79f51
refs/heads/master: 3fbbc72ef172cd4272a43234d4c7a7bba44c97f5
14 changes: 6 additions & 8 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1395,10 +1395,6 @@ e1000_setup_tx_resources(struct e1000_adapter *adapter,
* (Descriptors) for all queues
* @adapter: board private structure
*
* If this function returns with an error, then it's possible one or
* more of the rings is populated (while the rest are not). It is the
* callers duty to clean those orphaned rings.
*
* Return 0 on success, negative on failure
**/

Expand All @@ -1412,6 +1408,9 @@ e1000_setup_all_tx_resources(struct e1000_adapter *adapter)
if (err) {
DPRINTK(PROBE, ERR,
"Allocation for Tx Queue %u failed\n", i);
for (i-- ; i >= 0; i--)
e1000_free_tx_resources(adapter,
&adapter->tx_ring[i]);
break;
}
}
Expand Down Expand Up @@ -1651,10 +1650,6 @@ e1000_setup_rx_resources(struct e1000_adapter *adapter,
* (Descriptors) for all queues
* @adapter: board private structure
*
* If this function returns with an error, then it's possible one or
* more of the rings is populated (while the rest are not). It is the
* callers duty to clean those orphaned rings.
*
* Return 0 on success, negative on failure
**/

Expand All @@ -1668,6 +1663,9 @@ e1000_setup_all_rx_resources(struct e1000_adapter *adapter)
if (err) {
DPRINTK(PROBE, ERR,
"Allocation for Rx Queue %u failed\n", i);
for (i-- ; i >= 0; i--)
e1000_free_rx_resources(adapter,
&adapter->rx_ring[i]);
break;
}
}
Expand Down

0 comments on commit 91f735c

Please sign in to comment.