Skip to content

Commit e7a3795

Browse files
Casey Leedomdavem330
authored andcommitted
cxgb4vf: Fail open if link_start() fails.
Fail open if link_start() fails. Signed-off-by: Casey Leedom <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8b6edf8 commit e7a3795

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/cxgb4vf/cxgb4vf_main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,9 @@ static int cxgb4vf_open(struct net_device *dev)
753753
if (err)
754754
return err;
755755
set_bit(pi->port_id, &adapter->open_device_map);
756-
link_start(dev);
756+
err = link_start(dev);
757+
if (err)
758+
return err;
757759
netif_tx_start_all_queues(dev);
758760
return 0;
759761
}

0 commit comments

Comments
 (0)