diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-01-14 01:43:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-19 19:20:07 -0500 |
commit | 70b9986ca4baaf6deb6f0e01d50f72457579adea (patch) | |
tree | c05e9c81ad6143671cf88458e3cb438c5eb45ffd /drivers/net/bnx2x_main.c | |
parent | f3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b (diff) |
bnx2x: Free IRQ
Error check could result with not freeing the IRQ
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 7c533797c064..ce98ecf8cb1c 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -6684,6 +6684,9 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) | |||
6684 | (DRV_PULSE_ALWAYS_ALIVE | bp->fw_drv_pulse_wr_seq)); | 6684 | (DRV_PULSE_ALWAYS_ALIVE | bp->fw_drv_pulse_wr_seq)); |
6685 | bnx2x_stats_handle(bp, STATS_EVENT_STOP); | 6685 | bnx2x_stats_handle(bp, STATS_EVENT_STOP); |
6686 | 6686 | ||
6687 | /* Release IRQs */ | ||
6688 | bnx2x_free_irq(bp); | ||
6689 | |||
6687 | /* Wait until tx fast path tasks complete */ | 6690 | /* Wait until tx fast path tasks complete */ |
6688 | for_each_queue(bp, i) { | 6691 | for_each_queue(bp, i) { |
6689 | struct bnx2x_fastpath *fp = &bp->fp[i]; | 6692 | struct bnx2x_fastpath *fp = &bp->fp[i]; |
@@ -6711,9 +6714,6 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) | |||
6711 | /* Give HW time to discard old tx messages */ | 6714 | /* Give HW time to discard old tx messages */ |
6712 | msleep(1); | 6715 | msleep(1); |
6713 | 6716 | ||
6714 | /* Release IRQs */ | ||
6715 | bnx2x_free_irq(bp); | ||
6716 | |||
6717 | if (CHIP_IS_E1(bp)) { | 6717 | if (CHIP_IS_E1(bp)) { |
6718 | struct mac_configuration_cmd *config = | 6718 | struct mac_configuration_cmd *config = |
6719 | bnx2x_sp(bp, mcast_config); | 6719 | bnx2x_sp(bp, mcast_config); |