cxgb4vf: Call netif_carrier_off properly in pci_probe
Subsystems (3)
PATCH 1/1 cxgb4vf: Call netif_carrier_off properly in pci_probe
netif_carrier_off() should be called only after register_netdev().
Signed-off-by Arjun Vynipadath <[email protected]>
Signed-off-by Vishal Kulkarni <[email protected]>
--- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +1 -1
@@ -3140,7 +3140,6 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev,* it. */ pi->xact_addr_filt =-1 ; -netif_carrier_off (netdev); netdev->irq = pdev->irq; netdev->hw_features = NETIF_F_SG | TSO_FLAGS | NETIF_F_GRO |
@@ -3246,6 +3245,7 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev,continue ; } +netif_carrier_off (netdev);set_bit (pidx, &adapter->registered_device_map); }if (adapter->registered_device_map ==0 ) {
Signature · 1 line
2.9.5
From: Arjun Vynipadath <[email protected]>
Date: Fri, 1 Mar 2019 16:07:01 +0530
Quoted 4 lines
netif_carrier_off()should be called only afterregister_netdev().Signed-off-by Arjun Vynipadath <[email protected]>Signed-off-by Vishal Kulkarni <[email protected]>
Applied.