diff options
author | Vasily Averin <vvs@sw.ru> | 2006-08-28 17:56:19 -0400 |
---|---|---|
committer | Auke Kok <juke-jan.h.kok@intel.com> | 2006-08-28 17:56:19 -0400 |
commit | 401a552b8b318d594fc44d36e3da13ad475a41f7 (patch) | |
tree | a8d2e8e93a7ce29bc8949bc270a8248e795cc2e7 /drivers/net/e1000/e1000_main.c | |
parent | 8fc897b00a7d81ffaa24e18881c2d6b10698ab0b (diff) |
e1000: IRQ resources cleanup
irq leak was found in 2.6.18-rc4 and e1000 7.2.7 from sourceforge: if
e1000_up fails in e1000_open() we do not free allocated irq
Signed-off-by: Vasily Averin <vvs@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 610a0cdbb68b..354d77841611 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -1207,7 +1207,7 @@ e1000_open(struct net_device *netdev) | |||
1207 | 1207 | ||
1208 | err = e1000_request_irq(adapter); | 1208 | err = e1000_request_irq(adapter); |
1209 | if (err) | 1209 | if (err) |
1210 | goto err_up; | 1210 | goto err_req_irq; |
1211 | 1211 | ||
1212 | e1000_power_up_phy(adapter); | 1212 | e1000_power_up_phy(adapter); |
1213 | 1213 | ||
@@ -1228,6 +1228,9 @@ e1000_open(struct net_device *netdev) | |||
1228 | return E1000_SUCCESS; | 1228 | return E1000_SUCCESS; |
1229 | 1229 | ||
1230 | err_up: | 1230 | err_up: |
1231 | e1000_power_down_phy(adapter); | ||
1232 | e1000_free_irq(adapter); | ||
1233 | err_req_irq: | ||
1231 | e1000_free_all_rx_resources(adapter); | 1234 | e1000_free_all_rx_resources(adapter); |
1232 | err_setup_rx: | 1235 | err_setup_rx: |
1233 | e1000_free_all_tx_resources(adapter); | 1236 | e1000_free_all_tx_resources(adapter); |