Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130405
b: refs/heads/master
c: e747a5c
h: refs/heads/master
i:
  130403: 890e639
v: v3
  • Loading branch information
Stefan Richter committed Jan 24, 2009
1 parent b161748 commit 6b9a446
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 64c634ef83991b390ec0503e61f16efb0ba3c60b
refs/heads/master: e747a5c0be3efe5465e45c8e326bc766b1288be6
2 changes: 1 addition & 1 deletion trunk/drivers/firewire/fw-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ fw_core_remove_card(struct fw_card *card)
fw_core_initiate_bus_reset(card, 1);

mutex_lock(&card_mutex);
list_del(&card->link);
list_del_init(&card->link);
mutex_unlock(&card_mutex);

/* Set up the dummy driver. */
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/firewire/fw-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,8 @@ static void fw_device_shutdown(struct work_struct *work)
container_of(work, struct fw_device, work.work);
int minor = MINOR(device->device.devt);

if (time_is_after_jiffies(device->card->reset_jiffies + SHUTDOWN_DELAY)) {
if (time_is_after_jiffies(device->card->reset_jiffies + SHUTDOWN_DELAY)
&& !list_empty(&device->card->link)) {
schedule_delayed_work(&device->work, SHUTDOWN_DELAY);
return;
}
Expand Down Expand Up @@ -1074,7 +1075,8 @@ void fw_node_event(struct fw_card *card, struct fw_node *node, int event)
if (atomic_xchg(&device->state,
FW_DEVICE_GONE) == FW_DEVICE_RUNNING) {
PREPARE_DELAYED_WORK(&device->work, fw_device_shutdown);
schedule_delayed_work(&device->work, SHUTDOWN_DELAY);
schedule_delayed_work(&device->work,
list_empty(&card->link) ? 0 : SHUTDOWN_DELAY);
}
break;
}
Expand Down

0 comments on commit 6b9a446

Please sign in to comment.