Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80946
b: refs/heads/master
c: 4dccd02
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Jan 30, 2008
1 parent a9526d4 commit 9cbe6b3
Show file tree
Hide file tree
Showing 2 changed files with 7 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: f148e20cef696e30a370d4f7cb9aeb46273fdd6e
refs/heads/master: 4dccd020d7ca5e673d7804cc4ff80fbf58d8a37e
8 changes: 6 additions & 2 deletions trunk/drivers/firewire/fw-sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,13 +606,17 @@ static void sbp2_release_target(struct kref *kref)
struct sbp2_logical_unit *lu, *next;
struct Scsi_Host *shost =
container_of((void *)tgt, struct Scsi_Host, hostdata[0]);
struct fw_device *device = fw_device(tgt->unit->device.parent);

list_for_each_entry_safe(lu, next, &tgt->lu_list, link) {
if (lu->sdev)
scsi_remove_device(lu->sdev);

sbp2_send_management_orb(lu, tgt->node_id, lu->generation,
SBP2_LOGOUT_REQUEST, lu->login_id, NULL);
if (!fw_device_is_shutdown(device))
sbp2_send_management_orb(lu, tgt->node_id,
lu->generation, SBP2_LOGOUT_REQUEST,
lu->login_id, NULL);

fw_core_remove_address_handler(&lu->address_handler);
list_del(&lu->link);
kfree(lu);
Expand Down

0 comments on commit 9cbe6b3

Please sign in to comment.