Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221449
b: refs/heads/master
c: 1a9708c
h: refs/heads/master
i:
  221447: 9ef044d
v: v3
  • Loading branch information
Christof Schmitt authored and James Bottomley committed Oct 25, 2010
1 parent 1b152d1 commit 23b72e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 0df138476c8306478d6e726f044868b4bccf411c
refs/heads/master: 1a9708cd352e3b25500704daee9270d879e48199
4 changes: 2 additions & 2 deletions trunk/drivers/s390/scsi/zfcp_unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ int zfcp_unit_add(struct zfcp_port *port, u64 fcp_lun)
return -ENOMEM;
}

get_device(&port->dev);

if (device_register(&unit->dev)) {
put_device(&unit->dev);
return -ENOMEM;
Expand All @@ -152,8 +154,6 @@ int zfcp_unit_add(struct zfcp_port *port, u64 fcp_lun)
return -EINVAL;
}

get_device(&port->dev);

write_lock_irq(&port->unit_list_lock);
list_add_tail(&unit->list, &port->unit_list);
write_unlock_irq(&port->unit_list_lock);
Expand Down

0 comments on commit 23b72e4

Please sign in to comment.