aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2006-01-12 19:51:01 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-17 07:44:51 -0500
commitf5645110aa2ed2dcc3e0373821474506ed4dc512 (patch)
tree9f613bb98018b7cb86df4f023ffa1dd77d659fd6 /drivers
parent392137fa9b966cf03f020f9a9a2619099b996266 (diff)
[PATCH] e1000: Fix desc. clean up
These were two separate community submitted patches. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: John Ronciak <john.ronciak@intel.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/e1000/e1000_ethtool.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c
index ceb9cd059b90..ad9ca2ac25fa 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -980,11 +980,11 @@ e1000_free_desc_rings(struct e1000_adapter *adapter)
980 } 980 }
981 } 981 }
982 982
983 if(txdr->desc) { 983 if (txdr->desc) {
984 pci_free_consistent(pdev, txdr->size, txdr->desc, txdr->dma); 984 pci_free_consistent(pdev, txdr->size, txdr->desc, txdr->dma);
985 txdr->desc = NULL; 985 txdr->desc = NULL;
986 } 986 }
987 if(rxdr->desc) { 987 if (rxdr->desc) {
988 pci_free_consistent(pdev, rxdr->size, rxdr->desc, rxdr->dma); 988 pci_free_consistent(pdev, rxdr->size, rxdr->desc, rxdr->dma);
989 rxdr->desc = NULL; 989 rxdr->desc = NULL;
990 } 990 }
@@ -993,6 +993,7 @@ e1000_free_desc_rings(struct e1000_adapter *adapter)
993 txdr->buffer_info = NULL; 993 txdr->buffer_info = NULL;
994 kfree(rxdr->buffer_info); 994 kfree(rxdr->buffer_info);
995 rxdr->buffer_info = NULL; 995 rxdr->buffer_info = NULL;
996
996 return; 997 return;
997} 998}
998 999