Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86370
b: refs/heads/master
c: 33f1c6c
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Feb 19, 2008
1 parent d9c0e1d commit c402888
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 5513c5f6f9bd8c8ad3727130910fa288c62526a7
refs/heads/master: 33f1c6c3529f5f279e2e98e5cca0c5bac152153b
8 changes: 4 additions & 4 deletions trunk/drivers/firewire/fw-sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,10 @@ static void sbp2_release_target(struct kref *kref)
sbp2_unblock(tgt);

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

scsi_device_put(lu->sdev);
}
sbp2_send_management_orb(lu, tgt->node_id, lu->generation,
SBP2_LOGOUT_REQUEST, lu->login_id, NULL);

Expand Down Expand Up @@ -886,12 +887,11 @@ static void sbp2_login(struct work_struct *work)
if (IS_ERR(sdev))
goto out_logout_login;

scsi_device_put(sdev);

/* Unreported error during __scsi_add_device() */
smp_rmb(); /* get current card generation */
if (generation != device->card->generation) {
scsi_remove_device(sdev);
scsi_device_put(sdev);
goto out_logout_login;
}

Expand Down

0 comments on commit c402888

Please sign in to comment.