Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167441
b: refs/heads/master
c: 2cfa948
h: refs/heads/master
i:
  167439: 24951ee
v: v3
  • Loading branch information
Stephen M. Cameron authored and Jens Axboe committed Oct 13, 2009
1 parent fcc7967 commit b9df1ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: c7ebf0657b1f47d85aee8349ed6345d940d7232a
refs/heads/master: 2cfa948c9ea8681e831743a3bb61157f590fa8d8
5 changes: 3 additions & 2 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -4254,7 +4254,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
mutex_init(&hba[i]->busy_shutting_down);

if (cciss_pci_init(hba[i], pdev) != 0)
goto clean0;
goto clean_no_release_regions;

sprintf(hba[i]->devname, "cciss%d", i);
hba[i]->ctlr = i;
Expand Down Expand Up @@ -4391,13 +4391,14 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
clean1:
cciss_destroy_hba_sysfs_entry(hba[i]);
clean0:
pci_release_regions(pdev);
clean_no_release_regions:
hba[i]->busy_initializing = 0;

/*
* Deliberately omit pci_disable_device(): it does something nasty to
* Smart Array controllers that pci_enable_device does not undo
*/
pci_release_regions(pdev);
pci_set_drvdata(pdev, NULL);
free_hba(i);
return -1;
Expand Down

0 comments on commit b9df1ef

Please sign in to comment.