qlcnic: fix memory leak in qlcnic_blink_led.
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Wed, 27 Apr 2011 14:43:44 +0000 (14:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2011 20:43:49 +0000 (13:43 -0700)
commit89b4208e2861bc7dc325840b44bae302a4e30add
treed6f708da6068510ab8ac948da3d3b5ec39c6a0c9
parent63c3a66fe6c827a731dcbdee181158b295626f83
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>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_ethtool.c