From: Sathya Perla Date: Fri, 28 Sep 2012 04:39:42 +0000 (+0000) Subject: be2net: fix wrong handling of be_setup() failure in be_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55f5c3c55b5a682c4bb37628979c5909f9de7b30;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git be2net: fix wrong handling of be_setup() failure in be_probe() Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index fa1743036a88..b712091bc218 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -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: