]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From 70b9986ca4baaf6deb6f0e01d50f72457579adea Mon Sep 17 00:00:00 2001 |
2 | From: Eilon Greenstein <eilong@broadcom.com> | |
3 | Date: Wed, 14 Jan 2009 06:43:48 +0000 | |
4 | Subject: bnx2x: Free IRQ | |
5 | Acked-by: Karsten Keil <kkeil@novell.com> | |
6 | Reference: bnc#472500 | |
7 | ||
8 | Error check could result with not freeing the IRQ | |
9 | ||
10 | Signed-off-by: Eilon Greenstein <eilong@broadcom.com> | |
11 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
12 | --- | |
13 | drivers/net/bnx2x_main.c | 6 +++--- | |
14 | 1 files changed, 3 insertions(+), 3 deletions(-) | |
15 | ||
16 | Index: linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c | |
17 | =================================================================== | |
18 | --- linux-2.6.27-bnx2x_2.orig/drivers/net/bnx2x_main.c | |
19 | +++ linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c | |
20 | @@ -6687,6 +6687,9 @@ static int bnx2x_nic_unload(struct bnx2x | |
21 | (DRV_PULSE_ALWAYS_ALIVE | bp->fw_drv_pulse_wr_seq)); | |
22 | bnx2x_stats_handle(bp, STATS_EVENT_STOP); | |
23 | ||
24 | + /* Release IRQs */ | |
25 | + bnx2x_free_irq(bp); | |
26 | + | |
27 | /* Wait until tx fast path tasks complete */ | |
28 | for_each_queue(bp, i) { | |
29 | struct bnx2x_fastpath *fp = &bp->fp[i]; | |
30 | @@ -6714,9 +6717,6 @@ static int bnx2x_nic_unload(struct bnx2x | |
31 | /* Give HW time to discard old tx messages */ | |
32 | msleep(1); | |
33 | ||
34 | - /* Release IRQs */ | |
35 | - bnx2x_free_irq(bp); | |
36 | - | |
37 | if (CHIP_IS_E1(bp)) { | |
38 | struct mac_configuration_cmd *config = | |
39 | bnx2x_sp(bp, mcast_config); |