Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77043
b: refs/heads/master
c: 2551a13
h: refs/heads/master
i:
  77041: 19fd156
  77039: bf4a9e0
v: v3
  • Loading branch information
Jeff Garzik authored and James Bottomley committed Jan 12, 2008
1 parent fba888a commit 6291afe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 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: 21e1a5f26c437591f67779a97e5cc95ebbb02e90
refs/heads/master: 2551a13e61d3c3df6c2da6de5a3ece78e6d67111
18 changes: 13 additions & 5 deletions trunk/drivers/scsi/ips.c
Original file line number Diff line number Diff line change
Expand Up @@ -6837,13 +6837,10 @@ ips_register_scsi(int index)
if (request_irq(ha->pcidev->irq, do_ipsintr, IRQF_SHARED, ips_name, ha)) {
IPS_PRINTK(KERN_WARNING, ha->pcidev,
"Unable to install interrupt handler\n");
scsi_host_put(sh);
return -1;
goto err_out_sh;
}

kfree(oldha);
ips_sh[index] = sh;
ips_ha[index] = ha;

/* Store away needed values for later use */
sh->unique_id = (ha->io_addr) ? ha->io_addr : ha->mem_addr;
Expand All @@ -6859,10 +6856,21 @@ ips_register_scsi(int index)
sh->max_channel = ha->nbus - 1;
sh->can_queue = ha->max_cmds - 1;

scsi_add_host(sh, NULL);
if (scsi_add_host(sh, &ha->pcidev->dev))
goto err_out;

ips_sh[index] = sh;
ips_ha[index] = ha;

scsi_scan_host(sh);

return 0;

err_out:
free_irq(ha->pcidev->irq, ha);
err_out_sh:
scsi_host_put(sh);
return -1;
}

/*---------------------------------------------------------------------------*/
Expand Down

0 comments on commit 6291afe

Please sign in to comment.