]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Fix up some ethtool results when adapter is removed
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 28 Feb 2014 23:48:56 +0000 (15:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 00:06:43 +0000 (19:06 -0500)
commit1dcca20b9cedfcdeb0bb3700647a2c6c53f46d8a
tree5a521ab466d180a93d351f9293fcd84a79493f60
parentf1a574d6727125acb3610d4dc5c2f2491dd66a39
ixgbe: Fix up some ethtool results when adapter is removed

Some ethtool tests returned apparently good results when the
adapter was in a removed state. Fix that by checking for removal.
This also fixes two paths that could return uninitialized memory
in data[4].

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c