From: Stefan Richter Date: Mon, 20 Aug 2007 23:05:14 +0000 (+0200) Subject: firewire: fix unloading of fw-ohci while devices are attached X-Git-Tag: MMI-PSA29.97-13-9~40646^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a2d9ed3210464d22fccb9834970629c1c36fa36;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git firewire: fix unloading of fw-ohci while devices are attached 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 --- diff --git a/drivers/firewire/fw-card.c b/drivers/firewire/fw-card.c index 0aeab3218bb6..3e9719948a8e 100644 --- a/drivers/firewire/fw-card.c +++ b/drivers/firewire/fw-card.c @@ -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); }