From: Casey Leedom Date: Thu, 11 Nov 2010 09:06:52 +0000 (+0000) Subject: cxgb4vf: Fail open if link_start() fails. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e7a3795f56122cc92530c3f9412b8ff19b70184c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git cxgb4vf: Fail open if link_start() fails. Fail open if link_start() fails. Signed-off-by: Casey Leedom Signed-off-by: David S. Miller --- diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c index 4487b1ace66..8da3bda13f3 100644 --- a/drivers/net/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/cxgb4vf/cxgb4vf_main.c @@ -753,7 +753,9 @@ static int cxgb4vf_open(struct net_device *dev) if (err) return err; set_bit(pi->port_id, &adapter->open_device_map); - link_start(dev); + err = link_start(dev); + if (err) + return err; netif_tx_start_all_queues(dev); return 0; }