Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5093
b: refs/heads/master
c: 2181858
h: refs/heads/master
i:
  5091: dbc631d
v: v3
  • Loading branch information
Roland Dreier committed Jul 27, 2005
1 parent e194c82 commit 1342d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: abdf119b4dad015803819c3d046d20cfbd393e87
refs/heads/master: 2181858bb814b51de8ec25b3ddd37cd06c53b0c9
6 changes: 3 additions & 3 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_ib.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void ipoib_free_ah(struct kref *kref)

unsigned long flags;

if (ah->last_send <= priv->tx_tail) {
if ((int) priv->tx_tail - (int) ah->last_send >= 0) {
ipoib_dbg(priv, "Freeing ah %p\n", ah->ah);
ib_destroy_ah(ah->ah);
kfree(ah);
Expand Down Expand Up @@ -355,7 +355,7 @@ static void __ipoib_reap_ah(struct net_device *dev)

spin_lock_irq(&priv->lock);
list_for_each_entry_safe(ah, tah, &priv->dead_ahs, list)
if (ah->last_send <= priv->tx_tail) {
if ((int) priv->tx_tail - (int) ah->last_send >= 0) {
list_del(&ah->list);
list_add_tail(&ah->list, &remove_list);
}
Expand Down Expand Up @@ -486,7 +486,7 @@ int ipoib_ib_dev_stop(struct net_device *dev)
* assume the HW is wedged and just free up
* all our pending work requests.
*/
while (priv->tx_tail < priv->tx_head) {
while ((int) priv->tx_tail - (int) priv->tx_head < 0) {
tx_req = &priv->tx_ring[priv->tx_tail &
(IPOIB_TX_RING_SIZE - 1)];
dma_unmap_single(priv->ca->dma_device,
Expand Down

0 comments on commit 1342d7b

Please sign in to comment.