Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242691
b: refs/heads/master
c: 12a18bd
h: refs/heads/master
i:
  242689: 699b978
  242687: ad87400
v: v3
  • Loading branch information
Nicholas Bellinger authored and James Bottomley committed Mar 23, 2011
1 parent bae0d61 commit d525802
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 872105689eeccbcd77377d6a29f69bba3b0cbe3b
refs/heads/master: 12a18bdc27f81ba9d0a08a2462a49d339fff8b2d
5 changes: 2 additions & 3 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ struct se_device *transport_add_device_to_core_hba(
const char *inquiry_prod,
const char *inquiry_rev)
{
int ret = 0, force_pt;
int force_pt;
struct se_device *dev;

dev = kzalloc(sizeof(struct se_device), GFP_KERNEL);
Expand Down Expand Up @@ -1737,9 +1737,8 @@ struct se_device *transport_add_device_to_core_hba(
}
scsi_dump_inquiry(dev);

return dev;
out:
if (!ret)
return dev;
kthread_stop(dev->process_thread);

spin_lock(&hba->device_lock);
Expand Down

0 comments on commit d525802

Please sign in to comment.