Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196095
b: refs/heads/master
c: 26e1e8d
h: refs/heads/master
i:
  196093: 7f47e10
  196091: 748b1a6
  196087: e6bd564
  196079: d9a7263
  196063: 5a2930f
  196031: 00463a6
  195967: ca19922
  195839: bf32a9c
  195583: 32a9275
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed May 21, 2010
1 parent 6c1b441 commit fb7d86b
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: e114474cf5c7fe7ab94dd4f5938ffa51c9af77c4
refs/heads/master: 26e1e8d1d1cfa914b95b5dab001a6ed898872755
8 changes: 7 additions & 1 deletion trunk/drivers/char/isicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,11 +1573,16 @@ static int __devinit isicom_probe(struct pci_dev *pdev,
dev_info(&pdev->dev, "ISI PCI Card(Device ID 0x%x)\n", ent->device);

/* allot the first empty slot in the array */
for (index = 0; index < BOARD_COUNT; index++)
for (index = 0; index < BOARD_COUNT; index++) {
if (isi_card[index].base == 0) {
board = &isi_card[index];
break;
}
}
if (index == BOARD_COUNT) {
retval = -ENODEV;
goto err_disable;
}

board->index = index;
board->base = pci_resource_start(pdev, 3);
Expand Down Expand Up @@ -1624,6 +1629,7 @@ static int __devinit isicom_probe(struct pci_dev *pdev,
errdec:
board->base = 0;
card_count--;
err_disable:
pci_disable_device(pdev);
err:
return retval;
Expand Down

0 comments on commit fb7d86b

Please sign in to comment.