Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265727
b: refs/heads/master
c: 0caa9aa
h: refs/heads/master
i:
  265725: 2341f4a
  265723: 3bb2604
  265719: 083fcd7
  265711: dfcf57a
  265695: ae49627
  265663: 1333c52
  265599: 64cc843
  265471: 771a277
  265215: cc8580b
v: v3
  • Loading branch information
Rasesh Mody authored and David S. Miller committed Sep 15, 2011
1 parent 396ea1f commit f6d5544
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 772b5235d86563b00786030d9f42af3a89fd0833
refs/heads/master: 0caa9aaec515268ec13b0939bfb7e32cf5a31a55
8 changes: 7 additions & 1 deletion trunk/drivers/net/ethernet/brocade/bna/bnad.c
Original file line number Diff line number Diff line change
Expand Up @@ -3253,8 +3253,10 @@ bnad_pci_probe(struct pci_dev *pdev,
spin_unlock_irqrestore(&bnad->bna_lock, flags);

err = bnad_res_alloc(bnad, &bnad->mod_res_info[0], BNA_MOD_RES_T_MAX);
if (err)
if (err) {
err = -EIO;
goto disable_ioceth;
}

spin_lock_irqsave(&bnad->bna_lock, flags);
bna_mod_init(&bnad->bna, &bnad->mod_res_info[0]);
Expand All @@ -3266,6 +3268,8 @@ bnad_pci_probe(struct pci_dev *pdev,
bnad_set_netdev_perm_addr(bnad);
spin_unlock_irqrestore(&bnad->bna_lock, flags);

mutex_unlock(&bnad->conf_mutex);

/* Finally, reguister with net_device layer */
err = register_netdev(netdev);
if (err) {
Expand All @@ -3274,6 +3278,8 @@ bnad_pci_probe(struct pci_dev *pdev,
}
set_bit(BNAD_RF_NETDEV_REGISTERED, &bnad->run_flags);

return 0;

probe_success:
mutex_unlock(&bnad->conf_mutex);
return 0;
Expand Down

0 comments on commit f6d5544

Please sign in to comment.