Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130280
b: refs/heads/master
c: 6e9f21f
h: refs/heads/master
v: v3
  • Loading branch information
Anirban Chakraborty authored and James Bottomley committed Jan 25, 2009
1 parent cbe817a commit 43cb499
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 41bbdbebbbe7e06871d25f51c2eb1d6466bb9e5f
refs/heads/master: 6e9f21f3d3d4933087d1e13b04667b6eb663b487
11 changes: 8 additions & 3 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -1888,6 +1888,8 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
"[ERROR] Failed to allocate memory for scsi_host\n");

ret = -ENOMEM;
qla2x00_mem_free(ha);
qla2x00_free_que(ha, req, rsp);
goto probe_hw_failed;
}

Expand Down Expand Up @@ -1917,14 +1919,13 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
/* Set up the irqs */
ret = qla2x00_request_irqs(ha, rsp);
if (ret)
goto probe_failed;

goto probe_init_failed;
/* Alloc arrays of request and response ring ptrs */
if (!qla2x00_alloc_queues(ha)) {
qla_printk(KERN_WARNING, ha,
"[ERROR] Failed to allocate memory for queue"
" pointers\n");
goto probe_failed;
goto probe_init_failed;
}
ha->rsp_q_map[0] = rsp;
ha->req_q_map[0] = req;
Expand Down Expand Up @@ -1997,6 +1998,10 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)

return 0;

probe_init_failed:
qla2x00_free_que(ha, req, rsp);
ha->max_queues = 0;

probe_failed:
qla2x00_free_device(base_vha);

Expand Down

0 comments on commit 43cb499

Please sign in to comment.