aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/stex.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2006-09-01 09:28:48 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-02 14:57:28 -0400
commitdeb81d80ba27da8dfabc29ccb5977db8f4942a0a (patch)
treeb4776d0eb64c1e849a40870192e9c90abd773f66 /drivers/scsi/stex.c
parentcf355883f506051a8ce3ac4539752829320b6c8c (diff)
[SCSI] add failure return to scsi_init_shared_tag_map()
And use it in the stex driver. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/stex.c')
-rw-r--r--drivers/scsi/stex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 15fb99f224ee..3cf3106a29b8 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -1108,9 +1108,8 @@ stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1108 if (err) 1108 if (err)
1109 goto out_free_irq; 1109 goto out_free_irq;
1110 1110
1111 scsi_init_shared_tag_map(host, ST_CAN_QUEUE); 1111 err = scsi_init_shared_tag_map(host, ST_CAN_QUEUE);
1112 if (host->bqt == NULL) { 1112 if (err) {
1113 err = -ENOMEM;
1114 printk(KERN_ERR DRV_NAME "(%s): init shared queue failed\n", 1113 printk(KERN_ERR DRV_NAME "(%s): init shared queue failed\n",
1115 pci_name(pdev)); 1114 pci_name(pdev));
1116 goto out_free_irq; 1115 goto out_free_irq;