Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15807
b: refs/heads/master
c: 6b27adb
h: refs/heads/master
i:
  15805: 74bd997
  15803: b782c92
  15799: 3c32464
  15791: cb9a07d
  15775: ee5c0c9
  15743: 37b913d
v: v3
  • Loading branch information
John W. Linville committed Nov 18, 2005
1 parent d50d723 commit d6e1e81
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: e98fc4aae10b925ad5aa739c483abf78d80b66db
refs/heads/master: 6b27adb607282addcfe2707783dfcc28ba3a753b
12 changes: 10 additions & 2 deletions trunk/drivers/net/e1000/e1000_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,13 +960,21 @@ e1000_free_desc_rings(struct e1000_adapter *adapter)
}
}

if(txdr->desc)
if(txdr->desc) {
pci_free_consistent(pdev, txdr->size, txdr->desc, txdr->dma);
if(rxdr->desc)
txdr->desc = NULL;
}
if(rxdr->desc) {
pci_free_consistent(pdev, rxdr->size, rxdr->desc, rxdr->dma);
rxdr->desc = NULL;
}

kfree(txdr->buffer_info);
txdr->buffer_info = NULL;

kfree(rxdr->buffer_info);
rxdr->buffer_info = NULL;

return;
}

Expand Down

0 comments on commit d6e1e81

Please sign in to comment.