提交 55f5c3c5 编写于 作者: S Sathya Perla 提交者: David S. Miller

be2net: fix wrong handling of be_setup() failure in be_probe()

Signed-off-by: NSathya Perla <sathya.perla@emulex.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5ee4979b
......@@ -3889,7 +3889,7 @@ static int __devinit be_probe(struct pci_dev *pdev,
status = be_setup(adapter);
if (status)
goto msix_disable;
goto stats_clean;
be_netdev_init(netdev);
status = register_netdev(netdev);
......@@ -3910,8 +3910,6 @@ static int __devinit be_probe(struct pci_dev *pdev,
unsetup:
be_clear(adapter);
msix_disable:
be_msix_disable(adapter);
stats_clean:
be_stats_cleanup(adapter);
ctrl_clean:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册