aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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;