Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68936
b: refs/heads/master
c: f01abb3
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Oct 12, 2007
1 parent a8b5e97 commit acb2885
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: a60ebc52cbfafc291c6b0b89e41ecaf3685c8e2a
refs/heads/master: f01abb362f878b8e2de69c03662d8e7f3ae1d6f8
17 changes: 9 additions & 8 deletions trunk/drivers/scsi/aic94xx/aic94xx_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ static int __devinit asd_pci_probe(struct pci_dev *dev,
asd_ha = kzalloc(sizeof(*asd_ha), GFP_KERNEL);
if (!asd_ha) {
asd_printk("out of memory\n");
goto Err;
goto Err_put;
}
asd_ha->pcidev = dev;
asd_ha->sas_ha.dev = &asd_ha->pcidev->dev;
Expand All @@ -600,14 +600,12 @@ static int __devinit asd_pci_probe(struct pci_dev *dev,
shost->max_cmd_len = 16;

err = scsi_add_host(shost, &dev->dev);
if (err) {
scsi_host_put(shost);
if (err)
goto Err_free;
}

err = asd_dev->setup(asd_ha);
if (err)
goto Err_free;
goto Err_remove;

err = -ENODEV;
if (!pci_set_dma_mask(dev, DMA_64BIT_MASK)
Expand All @@ -618,14 +616,14 @@ static int __devinit asd_pci_probe(struct pci_dev *dev,
;
else {
asd_printk("no suitable DMA mask for %s\n", pci_name(dev));
goto Err_free;
goto Err_remove;
}

pci_set_drvdata(dev, asd_ha);

err = asd_map_ha(asd_ha);
if (err)
goto Err_free;
goto Err_remove;

err = asd_create_ha_caches(asd_ha);
if (err)
Expand Down Expand Up @@ -692,9 +690,12 @@ static int __devinit asd_pci_probe(struct pci_dev *dev,
asd_destroy_ha_caches(asd_ha);
Err_unmap:
asd_unmap_ha(asd_ha);
Err_remove:
scsi_remove_host(shost);
Err_free:
kfree(asd_ha);
scsi_remove_host(shost);
Err_put:
scsi_host_put(shost);
Err:
pci_disable_device(dev);
return err;
Expand Down

0 comments on commit acb2885

Please sign in to comment.