Skip to content

Commit e7ede6c

Browse files
Phil Turnbullgregkh
Phil Turnbull
authored andcommitted
fm10k: correctly check if interface is removed
[ Upstream commit 540fca35e38d15777b310f450f63f056e63039f5 ] FM10K_REMOVED expects a hardware address, not a 'struct fm10k_hw'. Fixes: 5cb8db4 ("fm10k: Add support for VF") Signed-off-by: Phil Turnbull <[email protected]> Tested-by: Krishneil Singh <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b74fb8c commit e7ede6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ static void fm10k_self_test(struct net_device *dev,
840840

841841
memset(data, 0, sizeof(*data) * FM10K_TEST_LEN);
842842

843-
if (FM10K_REMOVED(hw)) {
843+
if (FM10K_REMOVED(hw->hw_addr)) {
844844
netif_err(interface, drv, dev,
845845
"Interface removed - test blocked\n");
846846
eth_test->flags |= ETH_TEST_FL_FAILED;

0 commit comments

Comments
 (0)