Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a2d9ed3 authored by Stefan Richter's avatar Stefan Richter
Browse files

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: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent a2ee3f9b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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);
}