Skip to content

Commit

Permalink
be2net: fix wrong handling of be_setup() failure in be_probe()
Browse files Browse the repository at this point in the history
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Sep 30, 2012
1 parent 5ee4979 commit 55f5c3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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:
Expand Down

0 comments on commit 55f5c3c

Please sign in to comment.