Skip to content

Commit

Permalink
firewire: fix unloading of fw-ohci while devices are attached
Browse files Browse the repository at this point in the history
Fix panic in run_timer_softirq right after "modprobe -r firewire-ohci"
if a FireWire disk was attached and firewire-sbp2 loaded.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Stefan Richter committed Aug 25, 2007
1 parent a2ee3f9 commit 8a2d9ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/firewire/fw-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,11 @@ fw_core_remove_card(struct fw_card *card)
/* Set up the dummy driver. */
card->driver = &dummy_driver;

fw_flush_transactions(card);

fw_destroy_nodes(card);
flush_scheduled_work();

fw_flush_transactions(card);
del_timer_sync(&card->flush_timer);

fw_card_put(card);
}
Expand Down

0 comments on commit 8a2d9ed

Please sign in to comment.