diff options
author | Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> | 2011-04-27 16:43:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-28 22:43:49 +0200 |
commit | 89b4208e2861bc7dc325840b44bae302a4e30add (patch) | |
tree | d6f708da6068510ab8ac948da3d3b5ec39c6a0c9 /drivers/net/qlcnic/qlcnic.h | |
parent | tg3: Convert u32 flag,flg2,flg3 uses to bitmap (diff) | |
download | linux-89b4208e2861bc7dc325840b44bae302a4e30add.tar.xz linux-89b4208e2861bc7dc325840b44bae302a4e30add.zip |
qlcnic: fix memory leak in qlcnic_blink_led.
o Memory allocated in ETHTOOL_ACTIVE mode, is not getting freed. So,
in ETHTOOL_ID_INACTIVE mode, return after freeing allocated memory.
o Using set bit instead of blink_down field, as it is also required
in internal Loopback test and etc.
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index fa5b15c474b0..f7acb807a03d 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h @@ -884,6 +884,7 @@ struct qlcnic_ipaddr { #define __QLCNIC_RESETTING 2 #define __QLCNIC_START_FW 4 #define __QLCNIC_AER 5 +#define __QLCNIC_DIAG_RES_ALLOC 6 #define QLCNIC_INTERRUPT_TEST 1 #define QLCNIC_LOOPBACK_TEST 2 @@ -913,7 +914,6 @@ struct qlcnic_adapter { struct net_device *netdev; struct pci_dev *pdev; - bool blink_was_down; unsigned long state; u32 flags; |