|
@@ -838,9 +838,6 @@ static int ibmvstgt_probe(struct vio_dev *dev, const struct vio_device_id *id)
|
|
if (!shost)
|
|
if (!shost)
|
|
goto free_vport;
|
|
goto free_vport;
|
|
shost->transportt = ibmvstgt_transport_template;
|
|
shost->transportt = ibmvstgt_transport_template;
|
|
- err = scsi_tgt_alloc_queue(shost);
|
|
|
|
- if (err)
|
|
|
|
- goto put_host;
|
|
|
|
|
|
|
|
target = host_to_srp_target(shost);
|
|
target = host_to_srp_target(shost);
|
|
target->shost = shost;
|
|
target->shost = shost;
|
|
@@ -872,6 +869,10 @@ static int ibmvstgt_probe(struct vio_dev *dev, const struct vio_device_id *id)
|
|
if (err)
|
|
if (err)
|
|
goto destroy_queue;
|
|
goto destroy_queue;
|
|
|
|
|
|
|
|
+ err = scsi_tgt_alloc_queue(shost);
|
|
|
|
+ if (err)
|
|
|
|
+ goto destroy_queue;
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
destroy_queue:
|
|
destroy_queue:
|
|
crq_queue_destroy(target);
|
|
crq_queue_destroy(target);
|