Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312700
b: refs/heads/master
c: 2962846
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Nicholas Bellinger committed Jul 20, 2012
1 parent 30b4f34 commit cad4693
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d6dfc868bcf329392abd1ecfa7357eb51ebf8c30
refs/heads/master: 2962846d14769e526b5d266f4af998b5a027b1d7
11 changes: 6 additions & 5 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ struct se_device *transport_add_device_to_core_hba(
* Setup the Asymmetric Logical Unit Assignment for struct se_device
*/
if (core_setup_alua(dev, force_pt) < 0)
goto out;
goto err_dev_list;

/*
* Startup the struct se_device processing thread
Expand All @@ -1108,7 +1108,7 @@ struct se_device *transport_add_device_to_core_hba(
if (!dev->tmr_wq) {
pr_err("Unable to create tmr workqueue for %s\n",
dev->transport->name);
goto out;
goto err_dev_list;
}
/*
* Setup work_queue for QUEUE_FULL
Expand All @@ -1126,7 +1126,7 @@ struct se_device *transport_add_device_to_core_hba(
if (!inquiry_prod || !inquiry_rev) {
pr_err("All non TCM/pSCSI plugins require"
" INQUIRY consts\n");
goto out;
goto err_wq;
}

strncpy(&dev->se_sub_dev->t10_wwn.vendor[0], "LIO-ORG", 8);
Expand All @@ -1136,9 +1136,10 @@ struct se_device *transport_add_device_to_core_hba(
scsi_dump_inquiry(dev);

return dev;
out:
destroy_workqueue(dev->tmr_wq);

err_wq:
destroy_workqueue(dev->tmr_wq);
err_dev_list:
spin_lock(&hba->device_lock);
list_del(&dev->dev_list);
hba->dev_count--;
Expand Down

0 comments on commit cad4693

Please sign in to comment.